Skip to content

LocalDataStore.commit method

LocalDataStore › commit

Commits several record changes atomically without serializing the rest of the database.

Signature:

commit(params: LocalDataStoreCommitParams): Promise<void>

Parameters:

ParameterTypeDescription
paramsLocalDataStoreCommitParamsWrites and deletions in one transaction, optionally after clearing the store.

Returns: Promise<void> — A promise that resolves only after all changes commit.