pub async fn lock_table( &self, table_name: String, lock_type: String, ) -> Result<LockTableResponse, KineticaError>
Set read or write locks on a table
Manages global access to a table’s data. By default a table has a lock_type of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lock_type is no_access then no operations are permitted on the table. The lock status can be queried by setting lock_type to status.
table_name- Name of the table to be locked, in [schema_name.]table_name format, using standard name resolution rules. It must be a currently existing table or view.lock_type- The type of lock being applied to the table. Setting it to status will return the current lock status of the table without changing it.
pub async fn lock_table_with_opts( &self, table_name: String, lock_type: String, options: LockTableRequestOptions, ) -> Result<LockTableResponse, KineticaError>
Set read or write locks on a table
Manages global access to a table’s data. By default a table has a lock_type of read_write, indicating all operations are permitted. A user may request a read_only or a write_only lock, after which only read or write operations, respectively, are permitted on the table until the lock is removed. When lock_type is no_access then no operations are permitted on the table. The lock status can be queried by setting lock_type to status.
table_name- Name of the table to be locked, in [schema_name.]table_name format, using standard name resolution rules. It must be a currently existing table or view.lock_type- The type of lock being applied to the table. Setting it to status will return the current lock status of the table without changing it.options- The optional parameters; any left unset take the server’s defaults.
pub async fn lock_table_raw( &self, request: &LockTableRequest, ) -> Result<LockTableResponse, KineticaError>
Sends a pre-built LockTableRequest to the /lock/table endpoint.
pub async fn lock_table_from_url( &self, url: &str, request: &LockTableRequest, ) -> Result<LockTableResponse, KineticaError>
Sends a pre-built LockTableRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.