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.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
table_name | string | Table on which the operation will be performed. Must be an existing table, view, or collection. | ||||||||||||||||||||||||||||||||||||||||||
action | string | Modification operation to be applied
|
||||||||||||||||||||||||||||||||||||||||||
value | string | The value of the modification. May be a column name, 'true' or 'false', a TTL, or the global access mode depending on input parameter action. | ||||||||||||||||||||||||||||||||||||||||||
options | map of string to strings | Optional parameters. The default value is an empty map ( {} ).
|
Name | Type | Description |
---|---|---|
table_name | string | Table on which the operation was performed. |
action | string | Modification operation that was performed. |
value | string | The value of the modification that was performed. |
type_id | string | return the type_id (when changing a table, a new type may be created) |
type_definition | string | return the type_definition (when changing a table, a new type may be created) |
properties | map of string to arrays of strings | return the type properties (when changing a table, a new type may be created) |
label | string | return the type label (when changing a table, a new type may be created) |