NAME
IPC::Manager::Base::DBI - Base class for DBI based protocols
DESCRIPTION
This is the base class for DBI based message stores and protocols.
METHODS
See IPC::Manager::Client for inherited methods
DBI SPECIFIC
- $hashref = $con->attrs
-
Get the attributes used for this database connection.
- $dbh = $con->dbh()
- $dbh = $class->dbh(dsn => $dsn, user => $user, pass => $password, attrs => {...})
-
Get the database handle. Can be used on an instance, or on the class with parameters.
- $attrs = $con_or_class->default_attrs()
-
Default attributes to be used for connections when none are specified. Returns undef unless overriden by a subclass.
- $dsn = $con->dsn
-
Get the dsn used for the connection.
- $str = $con->escape
-
Used to escape column names. Each protocol can specify a custom one, for example mysql and sqlite use '`', but postgresql uses '"'.
- $class->init_db(%params)
-
Used during spawn to put the necessary tables into the database if they are not already present.
- $password = $con->pass
-
Connection password.
- @sql = $class->table_sql
-
Get the table schema in SQL format to apply to the database.
- $username = $con->user
-
Connection username.
SOURCE
The source code repository for IPC::Manager can be found at https://https://github.com/exodist/IPC-Manager.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.