the default bucket used for newly created keys
stores the last commit time.
The minimum snapshot version to use for new transactions. This will be used when starting a new transaction in order to guarantee session guarantees like monotonic reads and read-your-writes
Option, which determines if snapshots should be monotonic.
If set to true
, this will update minSnapshotTime whenever
lastCommitTimestamp is updated
Inverse of jsToBinary
Closes the connection to Antidote
returns a reference to a counter object
returns a reference to a fat-counter object
returns a reference to an disable-wins flag object
returns a reference to an enable-wins flag object
returns the timestamp for the last commited transaction
returns a reference to a grow-only map
Method to encode objects before they are written to the database
returns a reference to a multi-value register
Reads several objects at once. To read a single object, use the read method on that object.
Reads several objects at once. The objects are stored in an object. Returns a new object with the read values stored under the same field in the object.
let objA = connection.counter("batch-object-read counter a")
let objB = connection.register<string>("batch-object-read register b")
let vals = await connection.readObjectsBatch({
a: objA,
b: objB
});
// could return: {a: 1, b: "hi"}
Hint: To read a single object, use the read method on that object.
returns a reference to a last-writer-wins register
returns a reference to a remove-resets map
returns a reference to a add-wins set object
Sets the timout for requests
returns a reference to a remove-wins set object
Starts a new transaction
creates a startTransaction message with the last timestamp and default transaction properties
Sends a single update operation or an array of update operations to Antidote.
Generated using TypeDoc
The DataFormat to use for decoding and encoding binary values. The default is MsgpackDataFormat.