[Catalyst] schema

Robert 'phaylon' Sedlacek rs at 474.at
Sun Dec 24 16:50:56 GMT 2006


Octavian Rasnita said:

> I want to test the application using a certain database, and if all works
> right, I want to use it with another one, and I don't want to need
> creating another Catalyst application just because I have changed the
> database.
>
> [...]
>
> and just change the name of the db in the application config.

Umm, why don't you just have two config files with different DSNs to your
schema? During development, my config has a "dbi:SQLite:..." DSN in it,
and the production server uses a postgres one.

-- 
# Robert 'phaylon' Sedlacek
# Perl 5/Catalyst Developer in Hamburg, Germany
{ EMail => ' rs at 474.at ', Web => ' http://474.at ' }




More information about the Catalyst mailing list