Modules§
Structs§
- Atomic
Write - 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.
- Commit
Result - The result of a successful commit of an atomic write operation.
- Database
Metadata - The database metadata that is returned by the KV Connect metadata endpoint.
- Endpoint
Info - 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.
- Metadata
Exchange Request - Mutation
- A request to perform a mutation on a key in the database. The mutation is performed on the value of the key.
- Read
Range - A request to read a range of keys from the database. If
endisNone, then the range is fromstartshall also be used as the end of the range. - Read
Range Output - A response to a
ReadRangerequest. - Snapshot
Read Options - Options for a snapshot read.
Enums§
- Consistency
- The consistency of a read.
- Convert
Error - 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.
- Mutation
Kind - The type of mutation to perform on a key in the database.
- Watch
KeyOutput - The message notifying about the status of a single key in a watch request.
Constants§
Traits§
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.
- Watch
Stream