pub async fn delete_records( &self, table_name: String, expressions: Vec<String>, ) -> Result<DeleteRecordsResponse, KineticaError>
Delete matching records from a dataset
Deletes record(s) matching the provided criteria from the given table. The record selection criteria can either be one or more expressions (matching multiple records), a single record identified by record_id options, or all records when using delete_all_records. Note that the three selection criteria are mutually exclusive. This operation cannot be run on a view. The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.
table_name- Name of the table from which to delete records, in [schema_name.]table_name format, using standard name resolution rules. Must contain the name of an existing table; not applicable to views.expressions- A list of the actual predicates, one for each select; format should follow the guidelines provided here. Specifying one or moreexpressionsis mutually exclusive to specifying record_id in theoptions.
pub async fn delete_records_with_opts( &self, table_name: String, expressions: Vec<String>, options: DeleteRecordsRequestOptions, ) -> Result<DeleteRecordsResponse, KineticaError>
Delete matching records from a dataset
Deletes record(s) matching the provided criteria from the given table. The record selection criteria can either be one or more expressions (matching multiple records), a single record identified by record_id options, or all records when using delete_all_records. Note that the three selection criteria are mutually exclusive. This operation cannot be run on a view. The operation is synchronous meaning that a response will not be available until the request is completely processed and all the matching records are deleted.
table_name- Name of the table from which to delete records, in [schema_name.]table_name format, using standard name resolution rules. Must contain the name of an existing table; not applicable to views.expressions- A list of the actual predicates, one for each select; format should follow the guidelines provided here. Specifying one or moreexpressionsis mutually exclusive to specifying record_id in theoptions.options- The optional parameters; any left unset take the server’s defaults.
pub async fn delete_records_raw( &self, request: &DeleteRecordsRequest, ) -> Result<DeleteRecordsResponse, KineticaError>
Sends a pre-built DeleteRecordsRequest to the /delete/records endpoint.
pub async fn delete_records_from_url( &self, url: &str, request: &DeleteRecordsRequest, ) -> Result<DeleteRecordsResponse, KineticaError>
Sends a pre-built DeleteRecordsRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.