GPUdb C++ API
Version 6.2.0.3
|
A set of input parameters for alterTable(const AlterTableRequest&) 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 alterTable(const AlterTableRequest&) const.
Apply various modifications to a table, view, or collection. The available modifications include the following:
Create or delete an index on a particular column. This can speed up certain operations when using expressions containing equality or relational operators on indexed columns. This only applies to tables.
Set the time-to-live (TTL). This can be applied to tables, views, or collections. When applied to collections, every contained table & view that is not protected will have its TTL set to the given value.
Set the global access mode (i.e. locking) for a table. This setting trumps any role-based access controls that may be in place; e.g., a user with write access to a table marked read-only will not be able to insert records into it. The mode can be set to read-only, write-only, read/write, and no access.
Change the protection mode to prevent or allow automatic expiration. This can be applied to tables, views, and collections.
Allow homogeneous tables within a collection.
Manage a table's columns–a column can be added, removed, or have its type and properties modified.
Set or unset compression for a column.
Definition at line 57 of file alter_table.h.
|
inline |
Constructs an AlterTableRequest object with default parameter values.
Definition at line 64 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', a TTL, or the global access mode depending on action. |
[in] | options_ | Optional parameters.
|
Definition at line 274 of file alter_table.h.
std::string gpudb::AlterTableRequest::action |
Definition at line 283 of file alter_table.h.
std::map<std::string, std::string> gpudb::AlterTableRequest::options |
Definition at line 285 of file alter_table.h.
std::string gpudb::AlterTableRequest::tableName |
Definition at line 282 of file alter_table.h.
std::string gpudb::AlterTableRequest::value |
Definition at line 284 of file alter_table.h.