Fey::Loader - Load your schema definition from a DBMS
version 0.13
my $loader = Fey::Loader->new( dbh => $dbh ); my $loader = Fey::Loader->new( dbh => $dbh, schema_class => '...', table_class => '...', ); my $schema = $loader->make_schema();
Fey::Loader takes a DBI handle and uses it to construct a set of Fey objects representing that schema. It will attempt to use an appropriate DBMS subclass if one exists, but will fall back to using a generic loader otherwise.
Fey::Loader
DBI
The generic loader simply uses the various schema information methods specified by DBI. This in turn depends on these methods being implemented by the driver.
See the Fey::Loader::DBI class for more details on what parameters the new() method accepts.
new()
This class provides the following methods:
Given a connected DBI handle, this method returns a new loader. If an appropriate subclass exists, it will be loaded and used. Otherwise, it will warn and fall back to using Fey::Loader::DBI.
Please report any bugs or feature requests to bug-fey-loader@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-fey-loader@rt.cpan.org
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Fey::Loader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey::Loader
CPAN shell
perl -MCPAN -e shell install Fey::Loader
For more information on module installation, please visit the detailed CPAN module installation guide.