NAME
DBIx::Wrapper::Config - Config Module for DBIx::Wrapper
SYNOPSIS
use DBIx::Wrapper::Config;
my $dbh = DBIx::Wrapper::Config->connect($db_key, $conf_path, \%dbix_wrapper_attrs);
DESCRIPTION
This module allows you to create a configuration file in XML
specifying information required to connect to databases using
DBIx::Wrapper. This way you can keep your database connection
specifications in one place. Each "db" element specifies a
key/name for the database connection, which should be passed as
the $db_key argument to connect() in order to connect to that
database. The "db" element's children specify the dsn,
authentication, and attribute information.
dbi:mysql:database=test_db;host=example.com;port=3306
test_user
test_pwd
test_user
test_pwd
connect($db_key, $conf_path, \%dbix_wrapper_attrs)
Return a DBIx::Wrapper object connected to the database
specified by $db_key in the file at $conf_path.
%dbix_wrapper_attrs is the optional 5th argument to
DBIx::Wrapper's connect() method, specifying handlers, etc.
The file specified by $conf_path should be in the format
specified in the DESCRIPTION section of this document.
EXAMPLES
DEPENDENCIES
DBIx::Wrapper, XML::Parser::Wrapper
AUTHOR
Don Owens
LICENSE AND COPYRIGHT
Copyright (c) 2005 Don Owens . All rights reserved.
This is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
DBIx::Wrapper, DBI
VERSION
0.02