/[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 143 - (show annotations)
Wed Jul 16 14:17:46 2008 UTC (15 years, 9 months ago) by dpavlin
File size: 322 byte(s)
huge refactor of code into more distinct classes

- Frey::Collection is now generally reusable from browser and designer
- Frey::Web::Item is now (bare) class instead of role
- Frey::Web::Layout now encapsulates different layouts for items
1 package Strix::Schema;
2
3 use Fey::ORM::Schema;
4 use Frey::Schema;
5
6 my $dsn = 'dbi:Pg:dbname=new';
7 $dsn = 'dbi:SQLite:dbname=./var/strix.sqlite';
8
9 my ( $schema, $source ) = Frey::Schema->schema_source( $dsn );
10
11 has_schema $schema;
12
13 #warn Strix::Schema->SQLFactoryClass();
14
15 __PACKAGE__->DBIManager()->add_source($source);
16
17 1;

  ViewVC Help
Powered by ViewVC 1.1.26