/[Frey]/trunk/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 /trunk/lib/Strix/Schema.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 621 - (show annotations)
Sat Nov 29 16:41:24 2008 UTC (15 years, 4 months ago) by dpavlin
File size: 387 byte(s)
 r702@eeepy:  dpavlin | 2008-11-29 17:41:26 +0100
 configure all dsn setting in config file

1 package Strix::Schema;
2
3 use Fey::ORM::Schema;
4 use Frey::Schema;
5
6 my $dsn = __PACKAGE__->config( __PACKAGE__ )->{dsn}; # FIXME yaaaack
7
8 my ( $schema, $source ) = Frey::Schema->schema_source( $dsn );
9
10 has_schema $schema;
11
12 #warn Strix::Schema->SQLFactoryClass();
13
14 __PACKAGE__->DBIManager()->add_source($source);
15
16 $source->dbh->do( qq{ set client_encoding = 'utf-8' } ) if $dsn =~ /Pg/;
17
18 1;

  ViewVC Help
Powered by ViewVC 1.1.26