NAME

OpenInteract::SPOPS::DBI - Common SPOPS::DBI-specific methods for objects

SYNOPSIS

# In configuration file
'myobj' => {
   'isa'   => [ qw/ ... OpenInteract::SPOPS::DBI ... / ],
}

DESCRIPTION

This class provides common datasource access methods required by SPOPS::DBI.

METHODS

global_datasource_handle( [ $connect_key ] )

Returns a DBI handle corresponding to the connection key $connect_key. If $connect_key is not given, then the default connection key is used. This is specified in the server configuration file under the key 'default_connection_db'.

global_db_handle( [ $connect_key ] )

Alias for global_datasource_handle() (kept for backward compatibility).

connection_info( [ $connect_key ] )

Returns a hashref of DBI connection information. If no $connect_key is given then we get the value of 'datasource' from the object configuration, and if that is not defined we get the default datasource from the server configuration.

See the server configuration file for documentation on what is in the hashref.

BUGS

None known.

TO DO

Nothing known.

SEE ALSO

SPOPS::DBI

COPYRIGHT

Copyright (c) 2001 intes.net, inc.. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHORS

Chris Winters <chris@cwinters.com>