NAME
DBIx::Custom::MySQL - DBIx::Custom MySQL implementation
Synopsys
# New
my $dbi = DBIx::Custom::MySQL->new(user => 'taro', $password => 'kliej&@K',
database => 'sample_db');
See DBIx::Custom and DBIx::Custom::Basic documentation at first
This class is DBIx::Custom::Basic subclass, and DBIx::Custom::Basic is DBIx::Custom subclass.
You can use all methods of DBIx::Custom::Basic and <DBIx::Custom> Please see DBIx::Custom::Basic and <DBIx::Custom> documentation.
Object methods
connect
Connect to database
$self->connect;
This override DBIx::Custom 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()
Author
Yuki Kimoto, <kimoto.yuki at gmail.com>
Github http://github.com/yuki-kimoto
I develope this module http://github.com/yuki-kimoto/DBIx-Custom
Copyright & license
Copyright 2009 Yuki Kimoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.