Skip to main content

◆ clearTables() [1/4]

ClearTablesResponse gpudb::GPUdb::clearTables (const ClearTablesRequest &request_) const

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
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ clearTables() [2/4]

ClearTablesResponse & gpudb::GPUdb::clearTables (const ClearTablesRequest &request_,
ClearTablesResponse &response_ ) const

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
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ clearTables() [3/4]

ClearTablesResponse gpudb::GPUdb::clearTables (const std::vector< std::string > &tableNames,
const std::map< std::string, std::string > &options ) const

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
[in]tableNamesNames 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 empty vector.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ clearTables() [4/4]

ClearTablesResponse & gpudb::GPUdb::clearTables (const std::vector< std::string > &tableNames,
const std::map< std::string, std::string > &options,
ClearTablesResponse &response_ ) const

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
[in]tableNamesNames 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 empty vector.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).