SPOPS::DBI::MySQL -- MySQL-specific code for DBI collections
myobject => { isa => [ qw( SPOPS::DBI::MySQL SPOPS::DBI ) ], increment_field => 1, };
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.
None known.
Nothing known.
SPOPS::Key::HandleField
DBD::mysql
DBI
Copyright (c) 2001-2004 intes.net, inc.. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris Winters <chris@cwinters.com>
To install SPOPS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPOPS
CPAN shell
perl -MCPAN -e shell install SPOPS
For more information on module installation, please visit the detailed CPAN module installation guide.