Test::DB::Sqlite
Temporary Sqlite Database for Testing
method: clone method: create method: destroy
package main;
use Test::DB::Sqlite;
my $tdbi = Test::DB::Sqlite->new;
Types::Standard
Test::DB::Object
Data::Object::Role::Buildable Data::Object::Role::Immutable Data::Object::Role::Stashable
dbh: ro, opt, Object dsn: ro, opt, Str database: ro, opt, Str file: ro, opt, Str
This package provides methods for generating and destroying Sqlite databases for testing purposes.
The clone method creates a temporary database from a database template.
clone(Str $source) : Object
=example-1 clone
# given: synopsis
$tdbi->clone('source.db');
# <Test::DB::Sqlite>
The create method creates a temporary database and returns the invocant.
create() : Object
=example-1 create
# given: synopsis
$tdbi->create;
# <Test::DB::Sqlite>
The destroy method destroys (drops) the database and returns the invocant.
destroy() : Object
=example-1 destroy
# given: synopsis
$tdbi->create;
$tdbi->destroy;
# <Test::DB::Sqlite>
15 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 16:
Unknown directive: =abstract
- Around line 22:
Unknown directive: =includes
- Around line 30:
Unknown directive: =synopsis
- Around line 40:
Unknown directive: =libraries
- Around line 46:
Unknown directive: =inherits
- Around line 52:
Unknown directive: =integrates
- Around line 60:
Unknown directive: =attributes
- Around line 69:
Unknown directive: =description
- Around line 76:
Unknown directive: =method
- Around line 80:
Unknown directive: =signature
- Around line 94:
Unknown directive: =method
- Around line 98:
Unknown directive: =signature
- Around line 112:
Unknown directive: =method
- Around line 116:
Unknown directive: =signature