]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema.pm
3 # Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
8 use base
'DBIx::Class::Schema';
11 __PACKAGE__-
>load_namespaces( default_resultset_class
=> '+DBIx::Class::ResultSet::RecursiveUpdate' );
14 my ( $dsn, $user, $pass ) = @_;
15 my $dbh = DBI-
>connect($dsn, $user, $pass, );
16 return $dbh->tables( '%', '%', 'dvd', );
21 my ( $dsn, $user, $pass ) = @_;
22 $dsn ||= 'dbi:SQLite:dbname=t/var/dvdzbr.db';
24 my $schema = __PACKAGE__-
>connect( $dsn, $user, $pass, {} );
26 $deploy_attrs->{add_drop_table
} = 1 if tables_exist
( $dsn, $user, $pass );
27 $schema->deploy( $deploy_attrs );
28 $schema->populate('User', [
29 [ qw
/username name password / ],
30 [ 'jgda', 'Jonas Alves', ''],
31 [ 'isa' , 'Isa', '', ],
32 [ 'zby' , 'Zbyszek Lukasiak', ''],
35 $schema->populate('Tag', [
42 $schema->populate('Dvd', [
43 [ qw
/name imdb_id owner current_borrower creation_date alter_date / ],
44 [ 'Picnick under the Hanging Rock', 123, 1, 3, '2003-01-16 23:12:01', undef ],
45 [ 'The Deerhunter', 1234, 1, 1, undef, undef ],
46 [ 'Rejs', 1235, 3, 1, undef, undef ],
47 [ 'Seksmisja', 1236, 3, 1, undef, undef ],
50 $schema->populate( 'Dvdtag', [
This page took 0.038885 seconds and 5 git commands to generate.