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