Parse::Dia::SQL::Output::DB2 - Create SQL for DB2.
use Parse::Dia::SQL; my $dia = Parse::Dia::SQL->new(...); print $dia->get_sql();
This class creates SQL for the IBM DB2 database.
The constructor. Arguments:
Create primary key clause, e.g.
constraint pk_<tablename> primary key (<column1>,..,<columnN>)
For DB2 the PK must be 18 characters or less
Returns undefined if list of primary key is empty (i.e. if there are no primary keys on given table).
For DB2 a constraint name must be 18 characters or less.
Returns shortened tablename.
Subclass for outputting SQL for the DB2 database
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.