Login
Back to bricks list
Introduction Version

AbstractDbManager

DbManager class. Provides backend feature for managing databases.

Implementation must define fillowing properties

:property db: Database Proxy :type db: DatabaseProxy

Attributes

mode: Literal

Functions

CLOSE_DB - @classmethod

Close the db connection

CONNECT_DB - @classmethod

Open the db connection

GET_BRICK_NAME - @classmethod
Return type:
str
GET_CONFIG - @classmethod
Parameters:
NameTypeDefault valueDescription
modeLiteral
Return type:
DbConfig
GET_DB - @classmethod

Get the db object

Return type:
DatabaseProxy
GET_ENGINE - @classmethod

Get the db object

Return type:
Literal
GET_UNIQUE_NAME - @classmethod
Return type:
str
INHERITORS - @classmethod

Get all the classes that inherit this class

Return type:
Set
INIT - @classmethod

Initialize the DbManager

Parameters:
NameTypeDefault valueDescription
modeLiteral
IS_MYSQL_ENGINE - @classmethod

Test if the mysql engine is active