pub struct AppendRecordsRequestOptions
pub offset: String,
pub limit: String,
pub expression: String,
pub order_by: String,
pub error_handling: String,
pub update_on_existing_pk: String,
pub enable_inplace_updates: String,
pub ignore_existing_pk: String,
pub pk_conflict_predicate_higher: String,
pub pk_conflict_predicate_lower: String,
pub truncate_strings: String,
Optional parameters for the /append/records endpoint.
Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.
Fields
offset: StringA positive integer indicating the number of initial results to skip from source_table_name. Default is 0. The minimum allowed value is 0. The maximum allowed value is MAX_INT. Server default: 0.
limit: StringA positive integer indicating the maximum number of results to be returned from source_table_name. Or END_OF_SET (-9999) to indicate that the max number of results should be returned. Server default: -9999.
expression: StringFilter expression to apply to the source_table_name.
order_by: StringComma-separated list of the columns to be sorted by from source table (specified by source_table_name), e.g., ‘timestamp asc, x desc’. The order_by columns do not have to be present in field_map.
error_handling: StringSpecifies how record errors are handled while appending source table records into the target table. Currently this governs primary-key collision behavior: skip and permissive drop the colliding source records and continue, while abort rejects the batch. Explicit update_on_existing_pk or ignore_existing_pk take precedence over this option. Server default: abort.
update_on_existing_pk: StringSpecifies the record collision policy for inserting source table records (specified by source_table_name) into a target table (specified by table_name) with a primary key. If set to true, any existing table record with primary key values that match those of a source table record being inserted will be replaced by that new record (the new data will be “upserted”). If set to false, any existing table record with primary key values that match those of a source table record being inserted will remain unchanged, while the source record will be rejected and an error handled as determined by ignore_existing_pk. If the specified table does not have a primary key, then this option has no effect. Server default: false.
enable_inplace_updates: StringApplies only when upserting (when update_on_existing_pk is true). If set to true, an existing record matched by primary key is modified in place. If set to false, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Server default: true.
ignore_existing_pk: StringSpecifies the record collision error-suppression policy for inserting source table records (specified by source_table_name) into a target table (specified by table_name) with a primary key, only used when not in upsert mode (upsert mode is disabled when update_on_existing_pk is false). If set to true, any source table record being inserted that is rejected for having primary key values that match those of an existing target table record will be ignored with no error generated. If false, the rejection of any source table record for having primary key values matching an existing target table record will result in an error being raised. If the specified table does not have a primary key or if upsert mode is in effect (update_on_existing_pk is true), then this option has no effect. Server default: false.
pk_conflict_predicate_higher: StringThe record with higher value for the column resolves the primary-key insert conflict.
pk_conflict_predicate_lower: StringThe record with lower value for the column resolves the primary-key insert conflict.
truncate_strings: StringIf set to true, it allows inserting longer strings into smaller charN string columns by truncating the longer strings to fit. Server default: false.
Implementations
Trait Implementations
impl Clone for AppendRecordsRequestOptions
fn clone(&self) -> AppendRecordsRequestOptions
fn clone_from(&mut self, source: &Self)
source. Read more