/[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 12 - (show annotations)
Sun Jun 29 00:17:17 2008 UTC (15 years, 9 months ago) by dpavlin
File size: 329 byte(s)
change database
1 package Strix::Schema;
2
3 use Fey::DBIManager;
4 use Fey::DBIManager::Source;
5 use Fey::Loader;
6 use Fey::ORM::Schema;
7
8 my $source = Fey::DBIManager::Source->new( dsn => 'dbi:Pg:dbname=new' );
9
10 my $schema = Fey::Loader->new( dbh => $source->dbh() )->make_schema();
11
12 has_schema $schema;
13
14 __PACKAGE__->DBIManager()->add_source($source);

  ViewVC Help
Powered by ViewVC 1.1.26