pub async fn clear_table( &self, table_name: String, authorization: String, ) -> Result<ClearTableResponse, KineticaError>
Delete a table
Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.
table_name- Name of the table to be cleared, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. Empty string clears all available tables, though this behavior is prevented by default via system configuration parameter disable_clear_all.authorization- No longer used. User can pass an empty string.
pub async fn clear_table_with_opts( &self, table_name: String, authorization: String, options: ClearTableRequestOptions, ) -> Result<ClearTableResponse, KineticaError>
Delete a table
Clears (drops) one or all tables in the database cluster. The operation is synchronous meaning that the table will be cleared before the function returns. The response payload returns the status of the operation along with the name of the table that was cleared.
table_name- Name of the table to be cleared, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. Empty string clears all available tables, though this behavior is prevented by default via system configuration parameter disable_clear_all.authorization- No longer used. User can pass an empty string.options- The optional parameters; any left unset take the server’s defaults.
pub async fn clear_table_raw( &self, request: &ClearTableRequest, ) -> Result<ClearTableResponse, KineticaError>
Sends a pre-built ClearTableRequest to the /clear/table endpoint.
pub async fn clear_table_from_url( &self, url: &str, request: &ClearTableRequest, ) -> Result<ClearTableResponse, KineticaError>
Sends a pre-built ClearTableRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.