SPOPS::DBI::MySQL - MySQL-specific code for DBI collections


SPOPS documentation  | view source Contained in the SPOPS distribution.

Index


NAME

Top

SPOPS::DBI::MySQL -- MySQL-specific code for DBI collections

SYNOPSIS

Top

 myobject => {
   isa             => [ qw( SPOPS::DBI::MySQL SPOPS::DBI ) ],
   increment_field => 1,
 };

DESCRIPTION

Top

This just implements some MySQL-specific routines so we can abstract them out.

One of these items is to return the just-inserted ID. Only works for tables that have at least one auto-increment field:

 CREATE TABLE my_table (
   id  int not null auto_increment,
   ...
 )

You must also specify a true value for the class configuration variable 'increment_field' to be able to automatically retrieve auto-increment field values.

BUGS

Top

None known.

TO DO

Top

Nothing known.

SEE ALSO

Top

SPOPS::Key::HandleField (SPOPS::Key::HandleField)

DBD::mysql

DBI

COPYRIGHT

Top

AUTHORS

Top

Chris Winters <chris@cwinters.com>


SPOPS documentation  | view source Contained in the SPOPS distribution.