Crate denokv_proto

Crate denokv_proto 

Source

Modules§

backup
datapath
time

Structs§

AtomicWrite
A request to perform an atomic check-modify-write operation on the database.
Check
A request to perform a check on a key in the database. The check is not performed on the value of the key, but rather on the versionstamp of the key.
CommitResult
The result of a successful commit of an atomic write operation.
DatabaseMetadata
The database metadata that is returned by the KV Connect metadata endpoint.
EndpointInfo
An endpoint that can be used to connect to the database.
Enqueue
A request to enqueue a message to the database. This message is delivered to a listener of the queue at least once.
Key
A key is for a KV pair. It is a vector of KeyParts.
KvEntry
A key-value entry with a versionstamp.
MetadataExchangeRequest
Mutation
A request to perform a mutation on a key in the database. The mutation is performed on the value of the key.
ReadRange
A request to read a range of keys from the database. If end is None, then the range is from start shall also be used as the end of the range.
ReadRangeOutput
A response to a ReadRange request.
SnapshotReadOptions
Options for a snapshot read.

Enums§

Consistency
The consistency of a read.
ConvertError
KeyPart
A key part is single item in a key. It can be a boolean, a double float, a variable precision signed integer, a UTF-8 string, or an arbitrary byte array.
KvValue
A serialized value for a KV pair as stored in the database. All values can be serialized into the V8 representation, but not all values are.
MutationKind
The type of mutation to perform on a key in the database.
WatchKeyOutput
The message notifying about the status of a single key in a watch request.

Constants§

VALUE_ENCODING_BYTES
VALUE_ENCODING_LE64
VALUE_ENCODING_V8

Traits§

Database
QueueMessageHandle

Functions§

decode_key
decode_value
Decode a value, returning None if the encoding is not understood.
encode_key
encode_value
encode_value_owned

Type Aliases§

Versionstamp
A versionstamp is a 10 byte array that is used to represent the version of a key in the database.
WatchStream