Parse::Dia::SQL::Output - Create SQL base class.
use Parse::Dia::SQL; my $dia = Parse::Dia::SQL->new(...); my $output = $dia->get_output_instance(); print $output->get_sql();
This is the base sql formatter class for creating sql. It contains basic functionality, which can be overridden in subclasses, one for each RDBMS.
Parse::Dia::SQL::Output::DB2 Parse::Dia::SQL::Output::Oracle
The constructor. Arguments:
db - the target database type
Return all sql. The sequence of statements is as follows:
constraints drop permissions drop view drop schema drop smallpackage pre sql schema create view create permissions create inserts smallpackage post sql associations create (indices first, then foreign keys)
To install Parse::Dia::SQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Dia::SQL
CPAN shell
perl -MCPAN -e shell install Parse::Dia::SQL
For more information on module installation, please visit the detailed CPAN module installation guide.