Object::Relation::Setup::DB::SQLiteObject::Relation::Setup::DB::SQLite module inherits from Object::Relation::Setup::DB to build a SQLite set up store. | |
Download |
Object::Relation::Setup::DB::SQLite Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Kineticode, Inc.
- Publisher web site:
- http://search.cpan.org/~dwheeler/Object-Relation-v0.1.0/lib/Object/Relation/Setup/DB/SQLite.pm
Object::Relation::Setup::DB::SQLite Tags
Object::Relation::Setup::DB::SQLite Description
Object::Relation::Setup::DB::SQLite module inherits from Object::Relation::Setup::DB to build a SQLite set up store. Object::Relation::Setup::DB::SQLite is a Perl module that inherits from Object::Relation::Setup::DB to build a SQLite set up store.Class InterfaceConstructorsnew my $sqlite_setup = Object::Relation::Setup::DB::SQLite->new(%params);The constructor inherits from Object::Relation::Setup::DB, but detects when the dsn attribute isn't set, and sets it to a default value. The database file in that value will be obj_rel.db and will live in the directory returned by File::Temp::tempdir().Class Methodsconnect_attrs DBI->connect( $dsn, $user, $pass, { Object::Relation::Setup::DB::SQLite->connect_attrs } );Returns a list of arugments to be used in the attributes hash passed to the DBI connect() method. Overrides that provided by Object::Relation::Setup::DB to add unicode => 1.Instance InterfaceInstance Methodssetup $setup->setup;Sets up the data store. This implementation simply constructs a database handle and assigns it to the dbh attribute, and then calls SUPER::setup() to let Object::Relation::Setup::DB handle the bulk of the work.teardown $kbs->teardown;Tears down the database by disconnecting all database connections and deleting the database file, which is extracted from the DSN. Requirements: · Perl
Object::Relation::Setup::DB::SQLite Related Software