We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9d801 commit fff17dfCopy full SHA for fff17df
objectbox/lib/src/native/store.dart
@@ -267,10 +267,11 @@ class Store {
267
}
268
269
270
- /// Returns if an open store was found for the given directory
271
- /// (i.e. opened before and not yet closed).
272
- static bool isOpen(String directory) {
273
- final cStr = directory.toNativeUtf8();
+ /// Returns if an open store (i.e. opened before and not yet closed) was found
+ /// for the given [databasePath] (or if null the [defaultDatabasePath]).
+ static bool isOpen(String? databasePath) {
+ final path = _safeDatabasePath(databasePath);
274
+ final cStr = path.toNativeUtf8();
275
try {
276
return C.store_is_open(cStr.cast());
277
} finally {
0 commit comments