Oryx::DBI - DBI Storage interface for Oryx
my $storage = Oryx::DBI->new; $storage->connect([ 'dbi:Pg:dbname=mydb', $usname, $passwd]); $storage->connect([ 'dbi:Pg:dbname=mydb', $usname, $passwd], $schema); $storage->dbh; $storage->db_name; $storage->ping; $storage->schema; $storage->util; $storage->set_util; $storage->deploy_class; $storage->deploy_schema;
DBI Storage interface for Oryx. You should not need to instantiate this directly, use Oryx->connect() instead.
Oryx->connect()
Simple constructor
Called by Oryx->connect(). You shouldn't need to be doing this.
returns the cached DBI handle object
Shortcut for "db_".$self->schema->name used for passing a name to Ima::DBI's set_db method.
"db_".$self->schema->name
set_db
ping the database
returns the schema if called with no arguments, otherwise sets if called with a Oryx::Schema instance.
simple mutator for accessing the oryx::dbi::util::x instance
determines which Oryx::DBI::Util class to instantiate by looking at the dsn passed to connect and sets it
connect
Takes a Oryx::Schema instance and deploys all classes seen by that schema instance to the database building all tables needed for storing your persistent objects.
does the work of deploying a given class' tables and link tables to the database; called by deploy_schema
deploy_schema
Oryx, Oryx::Class, Oryx::DBI::Util
Copyright (C) 2005 Richard Hundt <richard NO SPAM AT protea-systems.com>
This library is free software and may be used under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Oryx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Oryx
CPAN shell
perl -MCPAN -e shell install Oryx
For more information on module installation, please visit the detailed CPAN module installation guide.