newObjectboxLocalVaultStore function
Creates a new ObjectboxVaultStore
path
: The base storage location for this storecodec
: TheStoreCodec
used to convert to/from a Map<String, dynamic>` representation to a binary representationmaxDBSizeInKB
: The max DB sizefileMode
: The file modemaxReaders
: The number of maximum readersqueriesCaseSensitiveDefault
: If the queries are case sensitive, the default is true
Implementation
Future<ObjectboxVaultStore> newObjectboxLocalVaultStore(
{String? path,
StoreCodec? codec,
int? maxDBSizeInKB,
int? fileMode,
int? maxReaders,
bool? queriesCaseSensitiveDefault}) {
return ObjectboxAdapter.build(path ?? Directory.systemTemp.path,
maxDBSizeInKB: maxDBSizeInKB,
fileMode: fileMode,
maxReaders: maxReaders,
queriesCaseSensitiveDefault: queriesCaseSensitiveDefault)
.then((adapter) => ObjectboxVaultStore(adapter, codec: codec));
}