GPUdb C++ API
Version 5.2.0.0
|
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 in GPUdb. If a new table is being created then type of the table is given by typeId which must the be the type 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 then it will be created. To create a new, empty collection specify the collection name in tableName, leave typeId blank, and set the is_collection option to 'true'.
Definition at line 26 of file create_table.h.
|
inline |
Constructs a CreateTableRequest object with default parameter values.
Definition at line 33 of file create_table.h.
|
inline |
Constructs a CreateTableRequest object with the specified parameters.
[in] | tableName | Name of the table to be created. Must not be the name of a currently existing GPUdb table of a different type. Error for requests with existing table of the same name and type id may be suppressed by using the no_error_if_exists option. Cannot be an empty string. Valid characters are 'A-Za-z0-9_-(){}[] .:' (excluding the single quote), with the first character being one of 'A-Za-z0-9_'. The maximum length is 256 characters. |
[in] | typeId | ID of a currently registered type in GPUdb. All objects added to the newly created table will be of this type. Must be an empty string if the is_collection is 'true'. |
[in] | options | Optional parameters.
|
Definition at line 97 of file create_table.h.
std::map<std::string, std::string> gpudb::CreateTableRequest::options |
Definition at line 106 of file create_table.h.
std::string gpudb::CreateTableRequest::tableName |
Definition at line 104 of file create_table.h.
std::string gpudb::CreateTableRequest::typeId |
Definition at line 105 of file create_table.h.