NAME
DBIx::Custom::MySQL - DBIx::Custom MySQL implementation
SYNOPSYS
# New
my $dbi = DBIx::Custom::MySQL->new(user => 'taro', $password => 'kliej&@K',
database => 'sample_db');
METHODS
This class is DBIx::Custom::Basic subclass. You can use all methods of DBIx::Custom::Basic
connect
Connect to database
$self->connect;
If you set database, host, or port, data source is automatically created.
last_insert_id
$last_insert_id = $dbi->last_insert_id;
The folloing is last_insert_id sample.
$dbi->insert('books', {title => 'Perl', author => 'taro'});
$last_insert_id = $dbi->last_insert_id;
This is equal to MySQL function
last_insert_id()