GPUdb C++ API  Version 7.2.3.0
gpudb::ClearTablesRequest Struct Reference

A set of parameters for GPUdb::clearTables. More...

#include <gpudb/protocol/clear_tables.h>

Public Member Functions

 ClearTablesRequest ()
 Constructs a ClearTablesRequest object with default parameters. More...
 
 ClearTablesRequest (const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
 Constructs a ClearTablesRequest object with the specified parameters. More...
 

Public Attributes

std::vector< std::string > tableNames
 Names of the tables to be cleared, in [ schema_name. ]table_name format, using standard name resolution rules. More...
 
std::map< std::string, std::string > options
 Optional parameters. More...
 

Detailed Description

A set of parameters for GPUdb::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.

Definition at line 21 of file clear_tables.h.

Constructor & Destructor Documentation

◆ ClearTablesRequest() [1/2]

gpudb::ClearTablesRequest::ClearTablesRequest ( )
inline

Constructs a ClearTablesRequest object with default parameters.

Definition at line 26 of file clear_tables.h.

◆ ClearTablesRequest() [2/2]

gpudb::ClearTablesRequest::ClearTablesRequest ( const std::vector< std::string > &  tableNames_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a ClearTablesRequest object with the specified parameters.

Parameters
[in]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 empty vector.
[in]options_Optional parameters. The default value is an empty map.

Definition at line 72 of file clear_tables.h.

Member Data Documentation

◆ options

std::map<std::string, std::string> gpudb::ClearTablesRequest::options

Optional parameters.

The default value is an empty map.

Definition at line 108 of file clear_tables.h.

◆ tableNames

std::vector<std::string> gpudb::ClearTablesRequest::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 empty vector.

Definition at line 87 of file clear_tables.h.


The documentation for this struct was generated from the following file: