Stores a new record; throws StorageError exists when the key is taken.
Removes a record and returns it, or undefined when there was none, so only one caller ever receives it.
The record under a key, or undefined.
Every record of a collection, or those matching where, in key order; with page, at most limit of them, after
the key after, so a long list is read a page at a time.
Merges fields into a record and returns the result. Throws StorageError missing when there is no record, and
conflict when condition is given and the record no longer matches it.
Records kept by collection and key, as every storage engine keeps them, whether a JSON file or a database. The operations are the ones a store makes atomic natively, so the server builds its guarantees on them:
createrefuses a key that exists (a passkey is registered once),updatewith a condition refuses a record that changed (a signature counter cannot be replayed), anddeletereturns what it removed (a code or challenge works once).