Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I add relationships at runtime using DBIx::Class and Catalyst?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COAre you sure your users really change the database schema? That is exactly equivalent to allowing them to edit the source code. You don't necessarily need to model your "user interface" with DBIx::Class. You probably want to develop some intermediate representation that provides the functionality that you want, and keep your code and database schema fixed.
      singulars
    2. COThere is also DBIx::Class::Schema::Loader, if you are tracking a changing database you don't control, or something like that. But keep in mind, database schema changes will change the behavior of your application. If your code is static and your database schema is dynamic, there is almost certainly something wrong.
      singulars
    3. COI'm exploring the possibility of using my own schema/data-dictionary overlaid on the actual database. I have a 'columns' table and a 'tables' table. These are used to map user selected table and column names and attributes onto an underlying generic tablespace. As such, users can elect to add relationships between tables at run-time. I would like to access this relationship via DBIx. I'n building an intermediate interface to hide the generic schema and need this capability. Thanks, -Joe
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload