4 use Test::More qw(no_plan);
10 #$ENV{DBIC_TRACE} = 1;
13 my $schema = Cafe->connect( 'dbi:Pg:dbname=cafe', 'postgres', '' );
15 isa_ok($schema->source('Sumatra'), 'DBIx::Class::ResultSource::View', "My MTI class also");
17 #my $dir = "t/sql"; # tempdir(CLEANUP => 0);
18 #$schema->create_ddl_dir( ['PostgreSQL'], 0.1, $dir );
20 $schema->deploy( { add_drop_table => 1, add_drop_view => 1 } );
22 my $drink = $schema->resultset('Sumatra')
23 ->create( { sweetness => 4, aroma => 'earthy', flavor => 'great' } );
25 #my $cup = $schema->resultset('Coffee');
27 ##my $drink = $schema->resultset('Sumatra')->new_result({sweetness => 6, aroma => 'chocolate'});
28 #ok($drink, "made new drink OK");
31 #$drink->insert_or_update;