lock_table
- lock_table(
table_name: string,
lock_type?: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<LockTableResponse>Parameters
- table_name: string
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.
Optionallock_type: stringThe type of lock being applied to the table. Setting it to status will return the current lock status of the table without changing it.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<LockTableResponse>
Promise<Types.LockTableResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:11910
- table_name: string
lock_table_request
- lock_table_request(
request: LockTableRequest,
callback?: GPUdbCallback,
): Promise<LockTableResponse>Manages global access to a table’s data. By default a table has a
lock_typeof 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. Whenlock_typeis no_access then no operations are permitted on the table. The lock status can be queried by settinglock_typeto status.Parameters
- request: LockTableRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<LockTableResponse>
Promise<Types.LockTableResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:11879
- request: LockTableRequest
Manages global access to a table’s data. By default a table has a
lock_typeof 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. Whenlock_typeis no_access then no operations are permitted on the table. The lock status can be queried by settinglock_typeto status.