open method
- String dbPath, {
- 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();
}