Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Getting a table list from Catalyst/DBIx::Class

by betterworld (Curate)
on Sep 16, 2008 at 19:02 UTC ( [id://711775]=note: print w/replies, xml ) Need Help??


in reply to Getting a table list from Catalyst/DBIx::Class

I hope to avoid hard coding the table names by grabbing them out of the database.

Do you plan to create the tables dynamically or why don't you want them in your code?

Maybe DBIx::Class::Schema::Loader can be of help, it is designed to generate a schema from a running database.

  • Comment on Re: Getting a table list from Catalyst/DBIx::Class

Replies are listed 'Best First'.
Re^2: Getting a table list from Catalyst/DBIx::Class
by actualize (Monk) on Sep 16, 2008 at 19:09 UTC

    I already have the schema created. So far I am able to use table joins to get the data I need within the database. However, I want to search the data by category. It would be nice if I create a new table, I would only have to update schema files and already have the new table name available in my code.

    -Actualize

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-20 10:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found