build a Build.PL that uses Module::Build::Database
Perl
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
corpus/DZT/lib
lib/Dist/Zilla
t
xt/release
.gitignore
Changes
README.pod
dist.ini

README.pod

NAME

Dist::Zilla::Plugin::ModuleBuildDatabase - build a Build.PL that uses Module::Build::Database

VERSION

version 0.05_03

SYNOPSIS

[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

DESCRIPTION

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.

ATTRIBUTES

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:

mbd_database_type

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.

mbd_database_options

Database options. This is a hash reference. This must be specified using the dot notation as in the example above.

If you are using SQLite as your database type, then name will be adjusted if it is a relative path to be in the $dzil->root root instead of the build root. You may also use ~ in for the database name to specify a home directory.

mbd_database_extensions

Database extensions. This is a hash reference. This must be specified using the dot notation as in the example above.

SEE ALSO

Dist::Zilla::Plugin::ModuleBuild, Module::Build::Database, Module::Build::Database::PostgreSQL, Module::Build::Database::SQLite

AUTHOR

Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE

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.