GPUdb C++ API
Version 6.2.0.3
|
A set of input parameters for createTable(const CreateTableRequest&) const. More...
#include <gpudb/protocol/create_table.h>
Public Member Functions | |
CreateTableRequest () | |
Constructs a CreateTableRequest object with default parameter values. More... | |
CreateTableRequest (const std::string &tableName_, const std::string &typeId_, const std::map< std::string, std::string > &options_) | |
Constructs a CreateTableRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
std::string | typeId |
std::map< std::string, std::string > | options |
A set of input parameters for createTable(const CreateTableRequest&) const.
Creates a new table or collection. If a new table is being created, the type of the table is given by typeId, which must the be the ID of a currently registered type (i.e. one created via createType(const CreateTypeRequest&) const). The table will be created inside a collection if the option collection_name is specified. If that collection does not already exist, it will be created.
To create a new collection, specify the name of the collection in tableName and set the is_collection option to true; typeId will be ignored.
Definition at line 28 of file create_table.h.
|
inline |
Constructs a CreateTableRequest object with default parameter values.
Definition at line 35 of file create_table.h.
|
inline |
Constructs a CreateTableRequest object with the specified parameters.
[in] | tableName_ | Name of the table to be created. Error for requests with existing table of the same name and type id may be suppressed by using the no_error_if_exists option. See Tables for naming restrictions. |
[in] | typeId_ | ID of a currently registered type. All objects added to the newly created table will be of this type. Ignored if is_collection is true. |
[in] | options_ | Optional parameters.
|
Definition at line 150 of file create_table.h.
std::map<std::string, std::string> gpudb::CreateTableRequest::options |
Definition at line 159 of file create_table.h.
std::string gpudb::CreateTableRequest::tableName |
Definition at line 157 of file create_table.h.
std::string gpudb::CreateTableRequest::typeId |
Definition at line 158 of file create_table.h.