DBIx::Custom::MySQL - DBIx::Custom MySQL implementation
Version 0.0102
# New my $dbi = DBIx::Custom::MySQL->new(user => 'taro', $password => 'kliej&@K', database => 'sample_db'); # Insert $dbi->insert('books', {title => 'perl', author => 'taro'}); # Update # same as 'update books set (title = 'aaa', author = 'ken') where id = 5; $dbi->update('books', {title => 'aaa', author => 'ken'}, {id => 5}); # Delete $dbi->delete('books', {author => 'taro'}); # select * from books; $dbi->select('books'); # select * from books where ahthor = 'taro'; $dbi->select('books', {author => 'taro'});
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.
This method override DBIx::Custom::connect If database attribute is set, automatically data source is created and connect
Yuki Kimoto, <kimoto.yuki at gmail.com>
<kimoto.yuki at gmail.com>
Github http://github.com/yuki-kimoto
I develope this module http://github.com/yuki-kimoto/DBIx-Custom
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.
To install DBIx::Custom::MySQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Custom::MySQL
CPAN shell
perl -MCPAN -e shell install DBIx::Custom::MySQL
For more information on module installation, please visit the detailed CPAN module installation guide.