openStore function

Future<Store> openStore({
  1. String? directory,
  2. int? maxDBSizeInKB,
  3. int? fileMode,
  4. int? maxReaders,
  5. bool queriesCaseSensitiveDefault = true,
  6. String? macosApplicationGroup,
})

Open an ObjectBox store with the model declared in this file.

Implementation

Future<Store> openStore(
        {String? directory,
        int? maxDBSizeInKB,
        int? fileMode,
        int? maxReaders,
        bool queriesCaseSensitiveDefault = true,
        String? macosApplicationGroup}) async =>
    Store(getObjectBoxModel(),
        directory: directory ?? (await defaultStoreDirectory()).path,
        maxDBSizeInKB: maxDBSizeInKB,
        fileMode: fileMode,
        maxReaders: maxReaders,
        queriesCaseSensitiveDefault: queriesCaseSensitiveDefault,
        macosApplicationGroup: macosApplicationGroup);