DbManagerService
Functions
get_db_mode @classmethod
Return type :
Literal init_all_db @classmethod
Initialize the databases of all DbManagers that inherit the AbstractDbManager.
The initialization flow is:
- Connect all databases
- Create tables for all databases
- Run migrations once (across all bricks)
full_init :
bool - True If true, the migration and table creation will be done. If false, only the connection to the DB will be done. Defaults to True.
init_db @classmethod
Initialize the database of the provided DbManager.
db_manager :
AbstractDbManager The DbManager instance to initialize
full_init :
bool - True If true, the migration and table creation will be done. If false, only the connection to the DB will be done. Defaults to True.
Return type :
bool