DBIx-FixtureLoader

 view release on metacpan or  search on metacpan

t/02_utf8.t  view on Meta::CPAN

use DBIx::FixtureLoader;

my $_column_width = 16;
note 'DBD::SQLite';
note sprintf(" %-${_column_width}s : %s", 'VERSION', $DBD::SQLite::VERSION);
note 'Text::CSV';
note sprintf(" %-${_column_width}s : %s", 'VERSION', Text::CSV->VERSION);
note sprintf(" %-${_column_width}s : %s", 'Backend', Text::CSV->module);
note sprintf(" %-${_column_width}s : %s", 'Backend::VERSION', Text::CSV->version);

my $dbh = DBI->connect("dbi:SQLite::memory:", '', '', {RaiseError => 1, sqlite_unicode => 1}) or die 'cannot connect to db';
$dbh->do(q{
    CREATE TABLE item (
        id   INTEGER PRIMARY KEY,
        name VARCHAR(255)
    );
});

my $m = DBIx::FixtureLoader->new(
    dbh => $dbh,
);

t/02_utf8_tsv.t  view on Meta::CPAN

use DBIx::FixtureLoader;

my $_column_width = 16;
note 'DBD::SQLite';
note sprintf(" %-${_column_width}s : %s", 'VERSION', $DBD::SQLite::VERSION);
note 'Text::CSV';
note sprintf(" %-${_column_width}s : %s", 'VERSION', Text::CSV->VERSION);
note sprintf(" %-${_column_width}s : %s", 'Backend', Text::CSV->module);
note sprintf(" %-${_column_width}s : %s", 'Backend::VERSION', Text::CSV->version);

my $dbh = DBI->connect("dbi:SQLite::memory:", '', '', {RaiseError => 1, sqlite_unicode => 1}) or die 'cannot connect to db';
$dbh->do(q{
    CREATE TABLE item (
        id   INTEGER PRIMARY KEY,
        name VARCHAR(255)
    );
});

my $m = DBIx::FixtureLoader->new(
    dbh => $dbh,
);



( run in 0.958 second using v1.01-cache-2.11-cpan-f29a10751f0 )