Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Dev

Dynamism in a static model

 

 

Catalyst dev RSS feed   Index | Next | Previous | View Threaded


ido50 at yahoo

Apr 29, 2009, 8:33 AM

Post #1 of 2 (634 views)
Permalink
Dynamism in a static model

Hi everyone.

I am working on a Catalyst application that allows the end-user to add their own tables to the database (for the matter it is a CMS). The application creates the tables by using $c->model('DB')->storage->sth($sql) which is easy.

After creating tables, my application needs to recognize their existence and allow the end-user to populate them. While I could use Catalyst::Helper or manually create a (DBIx::Class) schema for every table created, these new schemas would not be recognized until the application is restarted.

This is bad, it makes my application useless. So my question is, is there a way for me to load the schemas I create while the application is running, instead of having to restart it, such that I can immediately start using them?

Thanks,
Ido Perelmutter.




_______________________________________________
Catalyst-dev mailing list
Catalyst-dev[at]lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev


bobtfish at bobtfish

Apr 29, 2009, 8:41 AM

Post #2 of 2 (578 views)
Permalink
Re: Dynamism in a static model [In reply to]

Ido Perelmutter wrote:
> So my question is, is there a way for me to load the schemas I create while the application is running, instead of having to restart it

This is a DBIC question and has nothing to do with Catalyst.

I think you'd be better off asking on the DBIC list.

Cheers
t0m

_______________________________________________
Catalyst-dev mailing list
Catalyst-dev[at]lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev

Catalyst dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.