open method

Future<void> open(
  1. String dbPath, {
  2. SMDBConfig? config,
})

Database Open

Implementation

Future<void> open(String dbPath, {SMDBConfig? config}) async {
  if (isOpened) {
    await close();
  }
  path = dbPath;
  _indexedDB = IndexedDB(
    db: this,
    dbFile: File(path),
    config: config ?? SMDBConfig.empty(),
  );

  await _indexedDB.loadIndexed();
}