Constants for InsertRecordsRequest options.
Constants
pub const ALLOW_PARTIAL_BATCH: &str = “allow_partial_batch”;If set to true, the insertion of records will be allowed to complete even if some records have errors. Otherwise, the entire batch will fail if any records have errors.
pub const FALSE: &str = “false”;Value constant for boolean false in options
pub const IGNORE_EXISTING_PK: &str = “ignore_existing_pk”;Specifies the record collision error-suppression policy for inserting into a table with a primary key, only used when not in upsert mode (UPDATE_ON_EXISTING_PK is false). If set to true, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If false, the rejection of any record for having primary key values matching an existing record will result in an error.
pub const RETURN_INDIVIDUAL_ERRORS: &str = “return_individual_errors”;If set to true, success will always be returned, and any errors found will be included in the info map in the response.
pub const TRUE: &str = “true”;Value constant for boolean true in options
pub const TRUNCATE_STRINGS: &str = “truncate_strings”;If set to true, records being inserted will be truncated to fit into the target table.
pub const UPDATE_ON_EXISTING_PK: &str = “update_on_existing_pk”;Specifies the record collision policy for inserting into a table with a primary key. If set to true, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record. If set to false, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by IGNORE_EXISTING_PK, ALLOW_PARTIAL_BATCH, and RETURN_INDIVIDUAL_ERRORS.