struct

Spacetime::Protocol::QueryUpdate

Inherits Struct < Value < Object

Row deletes and inserts for a single query on a table.

Constructors

decode_bsatn(decoder : BSATN::Decoder) : self
Source
decode_compressable_bsatn(decoder : BSATN::Decoder) : self

Decodes a CompressableQueryUpdate (Uncompressed = 0, Brotli = 1, Gzip = 2).

Source
from_sats_json(any : JSON::Any) : self
Source
new(deletes : BsatnRowList = BsatnRowList.empty, inserts : BsatnRowList = BsatnRowList.empty, json_deletes : Array(String) = [] of String, json_inserts : Array(String) = [] of String)
Source

Instance methods

deletes
Source
encode_bsatn(encoder : BSATN::Encoder) : Nil
Source
encode_compressable_bsatn(encoder : BSATN::Encoder, compression : Compression = Compression::None) : Nil

Encodes this QueryUpdate as a CompressableQueryUpdate (optionally Gzip-compressed).

Source
inserts
Source
json_deletes
Source
json_inserts
Source