6.114. sibl_gui.components.core.database.database

database.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the Database Component Interface class.

Others:

6.114.1. Module Attributes

sibl_gui.components.core.database.database.LOGGER

6.114.2. Classes

class sibl_gui.components.core.database.database.Database(name=None)[source]

Bases: manager.component.Component

This class is the sibl_gui.components.core.database.database Component Interface class.
It provides Application Database creation and session, proceeds to its backup using the foundations.rotatingBackup.
Parameters:name – Component name. ( String )
engine[source]

This method is the property for self.__engine attribute.

Returns:self.__engine. ( QObject )
databaseName[source]

This method is the property for self.__databaseName attribute.

Returns:self.__databaseName. ( String )
databaseEngine[source]

This method is the property for self.__databaseEngine attribute.

Returns:self.__databaseEngine. ( Object )
databaseCatalog[source]

This method is the property for self.__databaseCatalog attribute.

Returns:self.__databaseCatalog. ( Object )
databaseSession[source]

This method is the property for self.__databaseSession attribute.

Returns:self.__databaseSession. ( Object )
databaseSessionMaker[source]

This method is the property for self.__databaseSessionMaker attribute.

Returns:self.__databaseSessionMaker. ( Object )
databaseConnectionString[source]

This method is the property for self.__databaseConnectionString attribute.

Returns:self.__databaseConnectionString. ( String )
databaseBackupDirectory[source]

This method is the property for self.__databaseBackupDirectory attribute.

Returns:self.__databaseBackupDirectory. ( String )
databaseBackupCount[source]

This method is the property for self.__databaseBackupCount attribute.

Returns:self.__databaseBackupCount. ( String )
activate(engine)[source]

This method activates the Component.

Parameters:engine – Engine to attach the Component to. ( QObject )
Returns:Method success. ( Boolean )
deactivate()[source]

This method deactivates the Component.

initialize()[source]

This method initializes the Component.

Returns:Method success. ( Boolean )
uninitialize()[source]

This method uninitializes the Component.

commit()[source]

This method commits pending changes in the Database.

Returns:Method success. ( Boolean )