GPUdb C++ API
Version 6.0.1.0
|
A set of input parameters for const. More...
#include <gpudb/protocol/alter_table.h>
Public Member Functions | |
AlterTableRequest () | |
Constructs an AlterTableRequest object with default parameter values. More... | |
AlterTableRequest (const std::string &tableName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_) | |
Constructs an AlterTableRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
std::string | action |
std::string | value |
std::map< std::string, std::string > | options |
A set of input parameters for const.
Apply various modifications to a table or collection. Available modifications include:
Creating or deleting an index on a particular column. This can speed up certain search queries (such as const, const, const) when using expressions containing equality or relational operators on indexed columns. This only applies to tables.
Setting the time-to-live (TTL). This can be applied to tables, views, or collections. When applied to collections, every table & view within the collection will have its TTL set to the given value.
Making a table protected or not. Protected tables have their TTLs set to not automatically expire. This can be applied to tables, views, and collections.
Allowing homogeneous tables within a collection.
Managing a table's columns–a column can be added or removed, or have its type modified.
Definition at line 41 of file alter_table.h.
|
inline |
Constructs an AlterTableRequest object with default parameter values.
Definition at line 48 of file alter_table.h.
|
inline |
Constructs an AlterTableRequest object with the specified parameters.
[in] | tableName_ | Table on which the operation will be performed. Must be an existing table, view, or collection. |
[in] | action_ | Modification operation to be applied
|
[in] | value_ | The value of the modification. May be a column name, 'true' or 'false', or a TTL depending on action. |
[in] | options_ | Optional parameters.
|
Definition at line 141 of file alter_table.h.
std::string gpudb::AlterTableRequest::action |
Definition at line 150 of file alter_table.h.
std::map<std::string, std::string> gpudb::AlterTableRequest::options |
Definition at line 152 of file alter_table.h.
std::string gpudb::AlterTableRequest::tableName |
Definition at line 149 of file alter_table.h.
std::string gpudb::AlterTableRequest::value |
Definition at line 151 of file alter_table.h.