FeyX::Active::Schema - An active Fey Schema
use FeyX::Active::Schema; my $schema = FeyX::Active::Schema->new( name => 'MySchema' ); $schema->dbi_manager->add_source( dsn => 'dbi:SQLite:dbname=foo' ); # ...
This is just a subclass of Fey::Schema which also happens to have a Fey::DBIManager instance handy. Nothing much else going on here actually.
This will lazily create a Fey::DBIManager instance to be used by this schema.
As of 0.02, this attribute is read/write so that it better works with Fey::Loader, like so:
my $dbi_manager = Fey::DBIManager->new(); $dbi_manager->add_source(...); my $loader = Fey::Loader->new( dbh => $dbi_manager->default_source->dbh, schema_class => 'FeyX::Active::Schema', table_class => 'FeyX::Active::Table', ); my $schema = $loader->make_schema; $schema->dbi_manager($dbi_manager);
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Stevan Little <stevan.little@iinteractive.com>
Copyright 2009-2010 Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install FeyX::Active, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FeyX::Active
CPAN shell
perl -MCPAN -e shell install FeyX::Active
For more information on module installation, please visit the detailed CPAN module installation guide.