Dist::Zilla::Plugin::ModuleBuildDatabase - build a Build.PL that uses Module::Build::Database
version 0.05
[ModuleBuildDatabase] mbd_database_type = PostgreSQL mbd_database_options.name = my_database_name mbd_database_options.schema = my_schema_name mbd_database_extensions.postgis.schema = public
This plugin is a very light layer over Dist::Zilla::Plugin::ModuleBuild to support some of the eccentricities of Module::Build::Database. It allows you to specify the database_type, database_options and database_extensions in your dist.ini. It also set the mb_class to Module::Build::Database.
database_type
database_options
database_extensions
dist.ini
This plugin understands all the attributes supported by Dist::Zilla::Plugin::ModuleBuild, with the minor caveat that the default for mb_class is Module::Build::Database instead of Module::Build. In addition it understands these options:
mb_class
The type of database. Any value supported by Module::Build::Database, which is, as of this writing either PostgreSQL or SQLite. The details and ramifications of using specific options are described in the Module::Build::Database::PostgreSQL and Module::Build::Database::SQLite documentation.
PostgreSQL
SQLite
Database options. This is a hash reference. This must be specified using the dot notation as in the example above.
Database extensions. This is a hash reference. This must be specified using the dot notation as in the example above.
Dist::Zilla::Plugin::ModuleBuild, Module::Build::Database, Module::Build::Database::PostgreSQL, Module::Build::Database::SQLite
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2013 by NASA GSFC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dist::Zilla::Plugin::ModuleBuildDatabase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::ModuleBuildDatabase
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::ModuleBuildDatabase
For more information on module installation, please visit the detailed CPAN module installation guide.