NAME
FeyX::Active::Schema - An active Fey Schema
SYNOPSIS
use
FeyX::Active::Schema;
my
$schema
= FeyX::Active::Schema->new(
name
=>
'MySchema'
);
$schema
->dbi_manager->add_source(
dsn
=>
'dbi:SQLite:dbname=foo'
);
# ...
DESCRIPTION
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.
ATTRIBUTES
- dbi_manager
-
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
);
BUGS
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.
AUTHOR
Stevan Little <stevan.little@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2009-2010 Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.