THIS MODULE IS NOT MAINTAINED ANYMORE. PLEASE USE SQL::Translator::Producer::DBIxSchemaDSL INSTEAD.
DBIx::Schema::DSL::Dumper - DBIx::Schema::DSL generator
use DBIx::Schema::DSL::Dumper;
print DBIx::Schema::DSL::Dumper->dump(
dbh => $dbh,
pkg => 'Foo::DSL',
# Optional. Default values is same as follows.
default_not_null => 0,
default_unsigned => 0,
# Optional.
table_options => +{
'mysql_table_type' => 'InnoDB',
'mysql_charset' => 'utf8',
}
);
# or
print DBIx::Schema::DSL::Dumper->dump(
dbh => $dbh,
tables => [qw/foo bar/],
);
This module generates the Perl code to generate DBIx::Schema::DSL.
DBIx::Schema::DSL, Teng::Schema::Dumper
Copyright (C) Kenta, Kobayashi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Kenta, Kobayashi kentafly88@gmail.com