Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Catalyst + PostgreSQL + DBIx::Class all schemas

by jasonk (Parson)
on Mar 07, 2009 at 01:00 UTC ( #748995=note: print w/replies, xml ) Need Help??

in reply to Catalyst + PostgreSQL + DBIx::Class all schemas

From the docs for DBIx::Class::Schema::Loader:

Currently the loader is limited to working within a single schema (using the database vendors' definition of "schema"). If you have a multi-schema database with inter-schema relationships (which is easy to do in PostgreSQL or DB2 for instance), you only get to automatically load the tables of one schema, and any relationships to tables in other schemas will be silently ignored.

At some point in the future, an intelligent way around this might be devised, probably by allowing the db_schema option to be an arrayref of schemas to load.

In "normal" DBIx::Class::Schema usage, manually-defined source classes and relationships have no problems crossing vendor schemas.

So it can be done, but not by DBIx::Class::Schema::Loader, and therefore not automatically.
We're not surrounded, we're in a target-rich environment!
  • Comment on Re: Catalyst + PostgreSQL + DBIx::Class all schemas

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://748995]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-01-17 04:26 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (51 votes). Check out past polls.