SPOPS::Import::DBI::TableTransform::MySQL - Table transformations for MySQL


SPOPS documentation  | view source Contained in the SPOPS distribution.

Index


NAME

Top

SPOPS::Import::DBI::TableTransform::MySQL - Table transformations for MySQL

SYNOPSIS

Top

 my $table = qq/
   CREATE TABLE blah ( id %%INCREMENT%% primary key,
                       name varchar(50) )
 /;
 my $transformer = SPOPS::Import::DBI::TableTransform->new( 'mysql' );
 $transformer->increment( \$table );
 print $table;

 # Output:
 # CREATE TABLE blah ( id INT NOT NULL AUTO_INCREMENT primary key,
 #                     name varchar(50) )

DESCRIPTION

Top

MySQL-specific type conversions for the auto-increment and other field types.

METHODS

Top

increment

Returns 'INT NOT NULL AUTO_INCREMENT'

increment_type

Returns 'INT'

datetime

Returns 'DATETIME'

BUGS

Top

None known.

TO DO

Top

Nothing known

SEE ALSO

Top

SPOPS::Import::DBI::TableTransform

COPYRIGHT

Top

AUTHORS

Top

Chris Winters <chris@cwinters.com>


SPOPS documentation  | view source Contained in the SPOPS distribution.