OpenPlugin::Datasource - Datasource connection manager plugin


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.

Index


NAME

Top

OpenPlugin::Datasource - Datasource connection manager plugin

SYNOPSIS

Top

 my $dbh  = $OP->datasource->connect( 'MyDataSourceName' );
 my $ldap = $OP->datasource->connect( 'LDAP_DataSourceName' );

 ...

 $OP->datasource->disconnect( 'MyDataSourceName' );

DESCRIPTION

Top

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.

METHODS

Top

connect( $datasource_name, [ \%datasource_info ] )

Returns a datasource mapping to $datasource_name. Datasources are defined in the config file.

disconnect( $datasource_name )

Disconnects datasource $datasource_name.

shutdown()

Disconnects all datasources.

BUGS

Top

None known.

TO DO

Top

Nothing known.

SEE ALSO

Top

See the individual datasource drivers for details on configuration and usage.

OpenPlugin, OpenPlugin::Datasource::DBI, OpenPlugin::Datasource::LDAP

COPYRIGHT

Top

AUTHORS

Top

Eric Andreychek <eric@openthought.net>


OpenPlugin documentation  | view source Contained in the OpenPlugin distribution.