Update a table
tables_patch( id, ontology_mapping = NULL, description = NULL, primary_keys = NULL, last_modified_keys = NULL )
id | integer required. The ID of the table. |
---|---|
ontology_mapping | list optional. The ontology-key to column-name mapping. See /ontology for the list of valid ontology keys. |
description | string optional. The user-defined description of the table. |
primary_keys | array optional. A list of column(s) which together uniquely identify a row in the data.These columns must not contain NULL values. |
last_modified_keys | array optional. The columns indicating when a row was last modified. |
A list containing the following elements:
integer, The ID of the table.
integer, The ID of the database.
string, The name of the schema containing the table.
string, Name of the table.
string, The description of the table, as specified by the table owner
boolean, True if this table represents a view. False if it represents a regular table.
integer, The number of rows in the table.
integer, The number of columns in the table.
number, The size of the table in megabytes.
string, The database username of the table's owner.
string, The column used as the Amazon Redshift distkey.
string, The column used as the Amazon Redshift sortkey.
string, How up-to-date the table's statistics on row counts, null counts, distinct counts, and values distributions are. One of: refreshing, stale, or current.
string, The time of the last statistics refresh.
string, The last time that Civis Platform captured a change in this table.Only applicable for Redshift tables; please see the Civis help desk for more info.
string, The last time that Civis Platform captured a change to the table attributes/structure.Only applicable for Redshift tables; please see the Civis help desk for more info.
string, The ID of the most recent statistics refresh.
list, A list containing the following elements:
id integer,
state string,
createdAt string, The time that the run was queued.
startedAt string, The time that the run started.
finishedAt string, The time that the run completed.
error string, The error message for this run, if present.
array, The primary keys for this table.
array, The columns indicating an entry's modification status for this table.
list, The ontology-key to column-name mapping. See /ontology for the list of valid ontology keys.