NAME

DBIx::Custom::SQLite - DBIx::Custom SQLite implementation

Synopsys

use DBIx::Custom::SQLite;

# New
my $dbi = DBIx::Custom::SQLite->new(user => 'taro', $password => 'kliej&@K',
                                    database => 'sample');

# Connect memory database
my $dbi->connect_memory;

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

Methods

connect

Connect to database

$dbi->connect;

If you set database, host, or port, data source is automatically created.

connect_memory

Connect memory database

$dbi->connect_memory;

reconnect_memory

Reconnect to memory databsse

$dbi->reconnect_memory;

last_insert_id

Get 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 SQLite function

last_insert_rowid()

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 & lisence

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.