GX::Database::SQLite

Module Version: 0.2000_01

NAME

GX::Database::SQLite - SQLite database component

SYNOPSIS

package MyApp::Database::Default;

use GX::Database::SQLite;

__PACKAGE__->setup(
file => '/srv/myapp/database.sqlite',
connect_options => { sqlite_unicode => 1 }
);

1;

DESCRIPTION

This module provides the GX::Database::SQLite class which extends the GX::Database class.

METHODS

Constructor

new

Returns the database component instance.

$database = $database_class->new;
Returns:
Exceptions:

Public Methods

All public methods can be called both as instance and class methods.

connect

See GX::Database.

connect_options

See GX::Database.

dbh

See GX::Database.

disconnect

See GX::Database.

dsn

See GX::Database.

is_connected

See GX::Database.

setup

Sets up the database component.

$database_class->setup( %options );
Options:
  • connect_options ( HASH reference )

    A reference to a hash with additional options to pass to DBI's connect() method.

  • dsn ( string )

    The full DBI data source name (DSN) that is used for connecting to the database. Overrides all other DSN related options if specified.

  • file ( string )

    An absolute path to the SQLite database file. Required unless dsn is specified.

  • sql_builder ( GX::SQL::Builder object )

    The associated SQL builder. Defaults to a GX::SQL::Builder::SQLite instance.

Exceptions:

sql_builder

See GX::Database.

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright © 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.