Skip to main content
pub struct UpdateRecordsRequest<T> 
    pub table_name: String,
    pub expressions: Vec<String>,
    pub new_values_maps: Vec<HashMap<String, Option<String>>>,
    pub data: Vec<T>,
    pub options: HashMap<String, String>,

The request payload for the /update/records endpoint, with its records as values, encoded when sent. RawUpdateRecordsRequest is the form sent.

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.

data: Vec<T>

The records, encoded by the schema of the first when sent.

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

fn default() -> Self

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