Module src.db_connection
Classes
Database
class Database(
)
Handles the all work related to connection pooling
Methods
close_all_connection_pool
def close_all_connection_pool(
self
)
connect
def connect(
self
)
get_conn_from_pool
def get_conn_from_pool(
self
)
Returns: connection
release_conn_from_pool
def release_conn_from_pool(
self,
pool_con
)
Args: pool_con (type): define which connection to remove from pool
Raises: ex: error if connection doesnot exists or misbehave of function