DBIx::Custom::SQLite - DBIx::Custom SQLite implementation
Version 0.0201
use DBIx::Custom::SQLite; # New my $dbi = DBIx::Custom::SQLite->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'}); # select author, title from books where author = 'taro' $dbi->select('books', [qw/author title/], {author => 'taro'}); # select author, title from books where author = 'taro' order by id limit 1; $dbi->select('books', [qw/author title/], {author => 'taro'}, 'order by id limit 1');
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 override DBIx::Custom connect.
# Connect to database $dbi->connect;
If database attribute is set, automatically data source is created and connect
# Connect memory database $self = $dbi->connect_memory;
# Reconnect memory database $self = $dbi->reconnect_memory;
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::SQLite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Custom::SQLite
CPAN shell
perl -MCPAN -e shell install DBIx::Custom::SQLite
For more information on module installation, please visit the detailed CPAN module installation guide.