clear_tables
- clear_tables(
table_names?: string[],
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<ClearTablesResponse>Parameters
Optionaltable_names: string[]Names of the tables to be cleared, in [schema_name.]table_name format, using standard name resolution rules. Must be existing tables. Empty list clears all available tables, though this behavior is prevented by default via system configuration parameter disable_clear_all.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<ClearTablesResponse>
Promise<Types.ClearTablesResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5251
clear_tables_request
- clear_tables_request(
request: ClearTablesRequest,
callback?: GPUdbCallback,
): Promise<ClearTablesResponse>Clears (drops) tables in the database cluster. The operation is synchronous meaning that the tables will be cleared before the function returns. The response payload returns the status of the operation for each table requested.
Parameters
- request: ClearTablesRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<ClearTablesResponse>
Promise<Types.ClearTablesResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:5225
- request: ClearTablesRequest
Clears (drops) tables in the database cluster. The operation is synchronous meaning that the tables will be cleared before the function returns. The response payload returns the status of the operation for each table requested.