SPOPS::Import::DBI::TableTransform::Sybase - Table transformations for Sybase/MSSQL


SPOPS documentation  | view source Contained in the SPOPS distribution.

Index


NAME

Top

SPOPS::Import::DBI::TableTransform::Sybase - Table transformations for Sybase/MSSQL

SYNOPSIS

Top

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

 # Output:
 # CREATE TABLE blah ( id NUMERIC(10,0) IDENTITY NOT NULL primary key,
 #                     name varchar(50) )</pre>

DESCRIPTION

Top

Sybase-specific (and Microsoft SQL Server) type conversions for the auto-increment and other field types.

METHODS

Top

increment

Returns 'NUMERIC(10,0) NOT NULL IDENTITY NOT NULL'

increment_type

Returns 'NUMERIC(10,0)'

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.