NAME
DBIx::Custom::SQLite - a SQLite implementation of DBIx::Custom
SYNOPSYS
use DBIx::Custom::SQLite;
# Connect
my $dbi = DBIx::Custom::SQLite->connect(user => 'taro',
password => 'kl&@K',
database => 'your_database');
# Connect memory database
my $dbi = DBIx::Custom::SQLite->connect_memory;
# Last insert row ID
my $id = $dbi->last_insert_rowid;
ATTRIBUTES
This class is DBIx::Custom subclass. You can use all attributes of DBIx::Custom.
database
Database name
$dbi = $dbi->database('your_database');
$database = $dbi->database;
METHODS
This class is DBIx::Custom subclass. You can use all methods of DBIx::Custom.
connect - overridden
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;
last_insert_rowid
Last insert row ID.
$last_insert_rowid = $dbi->last_insert_rowid;
This is equal to SQLite last_insert_rowid() function.