pgator.db.pool

Module describes connection pool to data bases. Pool handles several connections to one or more sql servers. If connection is lost, pool tries to reconnect over reconnectTime duration.

Members

Classes

ConnTimeoutException
class ConnTimeoutException

The exception is thrown when there is no any free connection for freeConnTimeout duration while trying to lock one.

OneRowConstraintException
class OneRowConstraintException

The exception is thrown when a sql query was marked as one row respond and the query returns a multiple rows. Transaction of the query is rollbacked.

QueryProcessingException
class QueryProcessingException

The exception is thrown when something bad has happen while query passing to server or loading from server. This exception has no bearing on the SQL errors.

UnknownTransactionException
class UnknownTransactionException

The exception is thrown when invalid transaction interface is passed to isTransactionReady and getTransaction methods.

Interfaces

IConnectionPool
interface IConnectionPool

Pool handles several connections to one or more SQL servers. If connection is lost, pool tries to reconnect over reconnectTime duration. *

Meta

Authors

NCrashed <ncrashed@gmail.com>

License

Subject to the terms of the MIT license, as written in the included LICENSE file.