clear_table
- clear_table(
table_name?: string,
authorization?: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<ClearTableResponse>Parameters
Optionaltable_name: stringName 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.
Optionalauthorization: stringNo longer used. User can pass an empty string.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<ClearTableResponse>
Promise<Types.ClearTableResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5149
clear_table_request
- clear_table_request(
request: ClearTableRequest,
callback?: GPUdbCallback,
): Promise<ClearTableResponse>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.
Parameters
- request: ClearTableRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<ClearTableResponse>
Promise<Types.ClearTableResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5121
- request: ClearTableRequest
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.