Re: [Catalyst] Re: One App, multiple databases

2008-11-19 Thread Jose Luis Martinez

kevin montuori escribió:

i'm wondering why you wouldn't have two models with different connection
information but that use the same schema?  


Because I wouldn't want application code touched for every user created 
or deleted... Every user will have a new db, and user creation should be 
automatable. Adding new model classes would imply restarts for every 
user added / deleted.



i might be mistaken, but it
seems that tying a user to a physical database circumvents some of the
abstraction MVC provides.


Exact same schema for every user. I think It's really the same level of 
abstraction. The app only uses one database per user. No info from 
databases of other users is needed.


Regards,

Jose Luis Martinez
[EMAIL PROTECTED]

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Re: One App, multiple databases

2008-11-19 Thread kevin montuori
> "JLM" == Jose Luis Martinez <[EMAIL PROTECTED]> writes:

 JLM> We have an app that will connect to one database or another
 JLM> depending on the logged in user.

i'm wondering why you wouldn't have two models with different connection
information but that use the same schema?  i might be mistaken, but it
seems that tying a user to a physical database circumvents some of the
abstraction MVC provides.

k.

-- 
kevin montuori
[EMAIL PROTECTED]

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/