NAME

DBIx::Custom::SQLite - SQLite implementation

SYNOPSYS

use DBIx::Custom::SQLite;

# Connect to the database
my $dbi = DBIx::Custom::SQLite->connect(database  => 'dbname');

# Connect to the memory database
my $dbi = DBIx::Custom::SQLite->connect_memory;

# Get last insert row id
my $id = $dbi->last_insert_rowid;

ATTRIBUTES

DBIx::Custom::SQLite inherits all attributes from DBIx::Custom and implements the following new ones.

database

my $database = $dbi->database;
$dbi         = $dbi->database('dbname');

Database name. connect() method use this value to connect the database if data_source is not specified.

METHODS

DBIx::Custom::SQLite inherits all methods from DBIx::Custom and implements the following new ones.

connect

my $dbi = DBIx::Custom::SQLite->connect(database  => 'dbname');

Create a new DBIx::Custom::SQLite object and connect to the database. This method overrides DBIx::Custom::connect() method. You can specify all attributes of DBIx::Custom and DBIx::Custom::SQLite, such as database.

connect_memory

my $dbi = DBIx::Custom::SQLite->connect_memory;

Create a new DBIx::Custom::SQLite object and connect to the memory database.