Skip to main content
pub struct RawUpdateRecordsRequest 
    pub table_name: String,
    pub expressions: Vec<String>,
    pub new_values_maps: Vec<HashMap<String, Option<String>>>,
    pub records_to_insert: Vec<ByteBuf>,
    pub records_to_insert_str: Vec<String>,
    pub record_encoding: String,
    pub options: HashMap<String, String>,

The request payload for the /update/records endpoint.

Perform predicate-based updates to table data

Fields

table_name: String

Name of table to be updated, in [schema_name.]table_name format, using standard name resolution rules. Must be a currently existing table and not a view.

expressions: Vec<String>

A list of the actual predicates, one for each update; format should follow the guidelines here.

new_values_maps: Vec<HashMap<String, Option<String>>>

List of new values for the matching records. Each element is a map with (key, value) pairs where the keys are the names of the columns whose values are to be updated; the values are the new values. The number of elements in the list should match the length of expressions.

records_to_insert: Vec<ByteBuf>

An optional list of new binary-avro encoded records to insert, one for each update. If one of expressions does not yield a matching record to be updated, then the corresponding element from this list will be added to the table.

records_to_insert_str: Vec<String>

An optional list of JSON encoded objects to insert, one for each update, to be added if the particular update did not match any objects.

record_encoding: String

Identifies which of records_to_insert and records_to_insert_str should be used.

options: HashMap<String, String>

Optional parameters.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

impl Default for RawUpdateRecordsRequest

Binary encoding by default.

Source

fn default() -> Self

Returns the “default value” for a type. Read more
Source

fn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D: Deserializer<‘de>,

Deserialize this value from the given Serde deserializer. Read more

This endpoint carries bulk record payloads, so its requests are compressed when the client has use_snappy enabled.

Source

fn avro_schema(&self) -> &‘static str

Returns the Avro schema as a JSON string for this record type.
Returns type properties including field types and attributes (e.g., primary_key).
Source

fn serialize<__S>(&self, __serializer: __S) ->Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more