openStore function

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

Shortcut for Store.new that passes getObjectBoxModel and for Flutter apps by default a directory using defaultStoreDirectory() from the ObjectBox Flutter library.

Note: for desktop apps it is recommended to specify a unique directory.

See Store.new for an explanation of all parameters.

Implementation

Store openStore(
        {String? directory,
        int? maxDBSizeInKB,
        int? fileMode,
        int? maxReaders,
        bool queriesCaseSensitiveDefault = true,
        String? macosApplicationGroup}) =>
    Store(getObjectBoxModel(),
        directory: directory,
        maxDBSizeInKB: maxDBSizeInKB,
        fileMode: fileMode,
        maxReaders: maxReaders,
        queriesCaseSensitiveDefault: queriesCaseSensitiveDefault,
        macosApplicationGroup: macosApplicationGroup);