TableResult object is the result of tableDDL, setTableLimits, getTable and and may also be the result of forCompletion method. It encapsulates the state of the table that is the target of the operation.

Operations performed by tableDDL such as table creation, modification, and drop are potentially long running and not necessarily completed when tableDDL returns result and the table may still be in one of its intermediate states. You may call forCompletion to be notified when the operation completes and the table reaches desired state (which, depending on the operation, would be either ACTIVE or DROPPED. You may also call getTable to receive static information about the table as well as its current state.

Hierarchy

  • TableResult

Properties

compartmentId?: string

Cloud service only. Compartment id of the table.

definedTags?: DefinedTags

Cloud service only. Defined tags associated with the table. See DefinedTags.

etag?: TableETag

Cloud service only. Entity tag associated with the table. See TableETag.

freeFormTags?: FreeFormTags

Cloud Service only. Free-form tags associated with the table. See FreeFormTags.

isLocalReplicaInitialized?: boolean

Cloud Service only. If this table is a replica, indicates whether its initialization process has been completed. The initialization process starts after the replica table is created and involves copying of the table data from the sender region to the receiver region. For more information, see Global Active Tables in NDCS. This value is true if the table is a replica and its initialization process has been completed, otherwise it is false.

See

addReplica

isReplicated?: boolean

Cloud Service only. Indicates whether the table has replicas, that is whether it is a Global Active table. For more information, see Global Active Tables in NDCS.

isSchemaFrozen?: boolean

Cloud Service only. Indicates whether or not the table's schema is frozen. Frozen schema is required for Global Active tables. For more information, see Global Active Tables in NDCS.

namespace?: string

On-premise NoSQL database only. The namespace of the table.

operationId?: string

Operation id of the operation that returned this result, if this result is returned by tableDDL, setTableLimits or setTableTags methods. It is used when the TableResult is subsequently passed to forCompletion or getTable as the first parameter to identify the operation and check for any errors from that operation. This value is undefined if the request did not generate a new operation.

replicas?: ReplicaInfo[]

Cloud Service only. An array containing information for each replica, if this table is replicated (Global Active Table), otherwise undefined. For more information, see Global Active Tables in NDCS.

See

ReplicaInfo

schema?: string

Table schema, in JSON format, if available.

tableDDL?: string

DDL (CREATE TABLE) statement used to create this table if available. If the table has been altered since initial creation, the statement is also altered to reflect the current table schema. This value, when defined, is functionally equivalent to the schema returned by schema. The most reliable way to get the DDL statement is by using getTable on an existing table.

tableLimits?: TableLimits

Cloud service only. Table limits, see TableLimits

tableName: string

Table name.

tableOCID?: string

Cloud service only. The OCID of the table.

tableState: TableState

Current table state, see TableState.

Generated using TypeDoc