clearTables
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-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.clearTables
public ClearTablesResponse clearTables(List<String> tableNames, Map<String, String> options) throws GPUdbException 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:tableNames- 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 be prevented by default via gpudb.conf parameter ‘disable_clear_all’. The default value is an emptyList.options- Optional parameters.NO_ERROR_IF_NOT_EXISTS: IfTRUEand if a table specified intableNamesdoes not exist no error is returned. IfFALSEand if a table specified intableNamesdoes not exist then an error is returned. Supported values:The default value isFALSE.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.