userver: testsuite.databases.pgsql.pool.AutocommitConnectionPool Class Reference
Loading...
Searching...
No Matches
testsuite.databases.pgsql.pool.AutocommitConnectionPool Class Reference

Detailed Description

Definition at line 8 of file pool.py.

Public Member Functions

None __init__ (self, int minconn, int maxconn, str uri)
typing.Generator[psycopg2.extensions.connection, None, None] get_connection (self)
None close (self)

Protected Attributes

 _pool = psycopg2.pool.ThreadedConnectionPool(minconn, maxconn, uri)

Constructor & Destructor Documentation

◆ __init__()

None testsuite.databases.pgsql.pool.AutocommitConnectionPool.__init__ ( self,
int minconn,
int maxconn,
str uri )

Definition at line 9 of file pool.py.

Member Function Documentation

◆ close()

None testsuite.databases.pgsql.pool.AutocommitConnectionPool.close ( self)

Definition at line 24 of file pool.py.

◆ get_connection()

typing.Generator[psycopg2.extensions.connection, None, None] testsuite.databases.pgsql.pool.AutocommitConnectionPool.get_connection ( self)

Definition at line 13 of file pool.py.

Member Data Documentation

◆ _pool

testsuite.databases.pgsql.pool.AutocommitConnectionPool._pool = psycopg2.pool.ThreadedConnectionPool(minconn, maxconn, uri)
protected

Definition at line 10 of file pool.py.


The documentation for this class was generated from the following file:
  • en/testsuite/databases/pgsql/pool.py