WriteTransactions are used with
Replicache.register and allows read and
write operations on the database.
Creates a persistent secondary index in Replicache which can be used with scan.
If the named index already exists with the same definition this returns success immediately. If the named index already exists, but with a different definition an error is returned.
Removes a key and its value from the database. Returns true if there was a key to remove.
Drops an index previously created with createIndex.
Get a single value from the database. If the key is not present this
Determines if a single key is present in the database.
Sets a single value in the database. The
value will be encoded using
Gets many values from the database. This returns a
AsyncIterable. It also has methods to iterate over the
ScanResult is used after the
ReadTransaction has been closed it
will throw a TransactionClosedError.
Convenience for scan() that reads all results into an array.
Generated using TypeDoc