Good way to deploy a database in a Perl module? Good way to deploy a database in a Perl module? database database

Good way to deploy a database in a Perl module?


The DBIx::Class ORM has support for versioning and deploying database schemas. You can have your users either update manually or you can provide scripts. This is what I usually do, since it also allows me to deploy a SQLite database file to use during development while staging/production can be any other supported system.

There is also DBIx::Class::DeploymentHandler, which I haven't used that much yet, so can't fully comment. It seems to have very good documentation though, so it's also worth a look.