SQL::Translator::Producer::DBIxSchemaDSL - DBIX::Schema::DSL specific producer for SQL::Translator
use SQL::Translator; use SQL::Translator::Producer::DBIxSchemaDSL; my $t = SQL::Translator->new( parser => '...' ); $t->producer('DBIxSchemaDSL'); $t->translate;
This module will produce text output of the schema suitable for DBIx::Schema::DSL.
default_not_null
Enables default_not_null in DSL.
default_unsigned
Enables default_unsigned in DSL.
typemap
Override type mapping from DBI type to DBIx::Schema::DSL type.
Example:
use DBI qw/:sql_types/; use SQL::Translator; use SQL::Translator::Producer::DBIx::Schema::DSL; my $t = SQL::Translator->new( parser => '...' ); $t->producer('GoogleBigQuery', { typemap => { SQL_TINYINT() => 'integer' } }); $t->translate;
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>
To install SQL::Translator::Producer::DBIxSchemaDSL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Translator::Producer::DBIxSchemaDSL
CPAN shell
perl -MCPAN -e shell install SQL::Translator::Producer::DBIxSchemaDSL
For more information on module installation, please visit the detailed CPAN module installation guide.