in reply to Database-independent means of creating database?
DBIx::Class::Schema->deploy can do this. You write -- or can automatically generate with DBIx::Class::Schema::Loader's make_schema_at if you have a DB already -- your DBIC schema. Then you can deploy it to (most) any DB by providing a valid/permissive connection.
There are caveats and edge cases because DBs can be customized so much; read the docs thoroughly.
Class::DBI might have similar functionality now, it didn't in the past. I used it a lot for a couple of years but haven't gone back since DBIC matured.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Database-independent means of creating database?
by unix_hacker_beard (Novice) on Jan 25, 2011 at 16:14 UTC | |
|
Re^2: Database-independent means of creating database?
by unix_hacker_beard (Novice) on Jan 26, 2011 at 21:32 UTC | |
by Your Mother (Archbishop) on Jan 27, 2011 at 01:20 UTC |