NAME
DBIx::Custom::SQLite - SQLite implementation
SYNOPSYS
use DBIx::Custom::SQLite;
# Connect to database
my $dbi = DBIx::Custom::SQLite->connect(database => 'dbname');
# Connect to memory database
my $dbi = DBIx::Custom::SQLite->connect_memory;
# Get 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
my $database = $dbi->database;
$dbi = $dbi->database('your_database');
Database name. This is used for connect().
METHODS
This class is DBIx::Custom subclass. You can use all methods of DBIx::Custom.
connect (overridden)
$dbi = DBIx::Custom::SQLite->connect(
data_source => "dbi:SQLite:dbname=your_db"
);
$dbi = DBIx::Custom::SQLite->connect(database => 'your_db');
Connect to database. You can also specify database name, instead of data source.
connect_memory
$dbi->connect_memory;
Connect to memory database.
last_insert_rowid
$last_insert_rowid = $dbi->last_insert_rowid;
Get last insert row id. This is equal to SQLite last_insert_rowid() function.