open method

void open()

Implementation

void open() {
  database = SqliteDb(_databasePath);

  database.open(populateFunction: (SqliteDb db) {
    if (!db.hasTable(TableName(TABLE_TILES, schemaSupported: false))) {
      db.execute(CREATE_TILES);
      db.execute(CREATE_METADATA);
      db.execute(INDEX_TILES);
      db.execute(INDEX_METADATA);
    }
  });
}