Skip to main content

◆ clearTable() [1/4]

ClearTableResponse gpudb::GPUdb::clearTable (const ClearTableRequest &request_) const

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

◆ clearTable() [2/4]

ClearTableResponse & gpudb::GPUdb::clearTable (const ClearTableRequest &request_,
ClearTableResponse &response_ ) const

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
[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).

◆ clearTable() [3/4]

ClearTableResponse gpudb::GPUdb::clearTable (const std::string &tableName,
const std::string &authorization,
const std::map< std::string, std::string > &options ) const

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
[in]tableNameName 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 be prevented by default via gpudb.conf parameter ‘disable_clear_all’. The default value is ”.
[in]authorizationNo longer used. User can pass an empty string. The default value is ”.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ clearTable() [4/4]

ClearTableResponse & gpudb::GPUdb::clearTable (const std::string &tableName,
const std::string &authorization,
const std::map< std::string, std::string > &options,
ClearTableResponse &response_ ) const

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
[in]tableNameName 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 be prevented by default via gpudb.conf parameter ‘disable_clear_all’. The default value is ”.
[in]authorizationNo longer used. User can pass an empty string. The default value is ”.
[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).