/[Frey]/branches/no-pager/lib/Strix/Schema.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /branches/no-pager/lib/Strix/Schema.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 702 - (show annotations)
Wed Dec 3 21:12:43 2008 UTC (15 years, 5 months ago) by dpavlin
File size: 437 byte(s)
branch for no-pager integration
1 package Strix::Schema;
2
3 use Fey::ORM::Schema;
4 use Frey::Schema;
5
6 sub debug { 0 } # FIXME fake
7 with 'Frey::Config';
8 my $dsn = __PACKAGE__->config( __PACKAGE__ )->{dsn}; # FIXME yaaaack
9
10 my ( $schema, $source ) = Frey::Schema->schema_source( $dsn );
11
12 has_schema $schema;
13
14 #warn Strix::Schema->SQLFactoryClass();
15
16 __PACKAGE__->DBIManager()->add_source($source);
17
18 $source->dbh->do( qq{ set client_encoding = 'utf-8' } ) if $dsn =~ /Pg/;
19
20 1;

  ViewVC Help
Powered by ViewVC 1.1.26