def __init__(self, database_file_path: str): """ Constructor :param database_file_path: Database file path """ tables = Tables() tables.user = UserTableSqlite() tables.user_authentication = UserAuthenticationTableSqlite() tables.user_authentication_parameter = UserAuthenticationParameterTableSqlite() tables.session_token = SessionTokenTableSqlite() tables.revision = RevisionTableSqlite() tables.project = ProjectTableSqlite() tables.project_information = ProjectInformationTableSqlite() tables.tracker = TrackerTableSqlite() tables.tracker_information = TrackerInformationTableSqlite() tables.tracker_field = TrackerFieldTableSqlite() tables.tracker_field_information = TrackerFieldInformationTableSqlite() Database.__init__(self, tables) self.__database_file_path = database_file_path self.__application_id = 0x53414c4d # HEX for "SALM" self.__encoding = "\"UTF-8\"" self.__user_version = 1 # Version of the database file
def __init__(self, params={}): Database.__init__(self) self.params = dict(params) self.payloads = [] self.tables = {} if not os.path.isdir("/tmp/s3"): os.mkdir("/tmp/s3")
def __init__(self, params): self.s3 = boto3.resource("s3") self.client = boto3.client("lambda") self.list = boto3.client("s3") self.params = params self.sleep_time = 1 Database.__init__(self)
def __init__(self, config): Database.__init__(self, config) self.upgrade()