def __init__(self, absolutePath): self.absolutePath = absolutePath schemaLocation = PathFinder.findSchemaFile("midimappings.sql") self._database = Sqlite3Database(absolutePath, schemaLocation) self.mappingTable = self.loadMappings(self._database)
def __init__(self, databaseLocation): self._filesColumns = {} schemaFileLocation = PathFinder.findSchemaFile("media.sql") self._database = Sqlite3Database(databaseLocation, schemaFileLocation) self.locations = self._loadLocationsFromDatabase() self.mediaFiles = self._loadFilesFromDatabase()
def __init__(self, absolutePath): self.absolutePath = absolutePath schemaLocation = PathFinder.findSchemaFile("settings.sql") self._database = Sqlite3Database(absolutePath, schemaLocation) self._settingsKeys = self._readSettings(self._database)