| DBI::Custom::MySQL - DBI::Custom MySQL implementation |
DBI::Custom::MySQL - DBI::Custom MySQL implementation
Version 0.0101
# New
my $dbi = DBI::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 module automatically encode_utf8 or decode_utf8 If you do not want to this, you set
$dbi->bind_filter(undef);
$dbi->fetch_filter(undef);
This method override DBI::Custom::connect
If database is set, automatically data source is created and connect
Yuki Kimoto, <kimoto.yuki at gmail.com>
Github http://github.com/yuki-kimoto
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.
| DBI::Custom::MySQL - DBI::Custom MySQL implementation |