OpenPlugin::Datasource - Datasource connection manager plugin
my $dbh = $OP->datasource->connect( 'MyDataSourceName' ); my $ldap = $OP->datasource->connect( 'LDAP_DataSourceName' ); ... $OP->datasource->disconnect( 'MyDataSourceName' );
This plugin provides a simple means of connecting to datasources such as DBI, LDAP or any other type of connections needed. It caches the connections for reuse throughout the lifetime of the application, although it contains no behavior (yet) for keeping the connections alive.
connect( $datasource_name, [ \%datasource_info ] )
Returns a datasource mapping to $datasource_name. Datasources are defined in the config file.
$datasource_name
disconnect( $datasource_name )
Disconnects datasource $datasource_name.
shutdown()
Disconnects all datasources.
None known.
Nothing known.
See the individual datasource drivers for details on configuration and usage.
OpenPlugin, OpenPlugin::Datasource::DBI, OpenPlugin::Datasource::LDAP
Copyright (c) 2001-2003 Eric Andreychek. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Eric Andreychek <eric@openthought.net>
To install OpenPlugin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenPlugin
CPAN shell
perl -MCPAN -e shell install OpenPlugin
For more information on module installation, please visit the detailed CPAN module installation guide.