/[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

Annotation of /trunk/lib/Strix/Schema.pm

Parent Directory Parent Directory | Revision Log Revision Log


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