TableProps
Properties for defining a Table
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-maxcompute-table
Initializer
import { TableProps } from '@alicloud/ros-cdk-maxcompute'
const tableProps: TableProps = { ... }
Properties
Name | Type | Description |
---|---|---|
name |
string | @alicloud/ros-cdk-core.IResolvable |
Property name: Table name. |
project |
string | @alicloud/ros-cdk-core.IResolvable |
Property project: Project name, if not provided, will be the default project. |
comment |
string | @alicloud/ros-cdk-core.IResolvable |
Property comment: Table comment. |
ifNotExists |
boolean | @alicloud/ros-cdk-core.IResolvable |
Property ifNotExists: If you create a table by using the name of an existing table and the parameter set to false, an error is returned. |
lifecycle |
number | @alicloud/ros-cdk-core.IResolvable |
Property lifecycle: Table's lifecycle. |
schema |
@alicloud/ros-cdk-core.IResolvable | SchemaProperty |
Property schema: Table schema. |
stringSchema |
string | @alicloud/ros-cdk-core.IResolvable |
Property stringSchema: Create a table with field names and field type strings. |
name
Required
public readonly name: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property name: Table name.
project
Required
public readonly project: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property project: Project name, if not provided, will be the default project.
comment
Optional
public readonly comment: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property comment: Table comment.
ifNotExists
Optional
public readonly ifNotExists: boolean | IResolvable;
- Type: boolean | @alicloud/ros-cdk-core.IResolvable
Property ifNotExists: If you create a table by using the name of an existing table and the parameter set to false, an error is returned.
If you specify the if not exists parameter, a success message is returned when you create a table by using the name of an existing table. The success message is returned even if the schema of the existing table is different from that of the table you want to create. If you create a table by using the name of an existing table, the table is not created and the metadata of the existing table is not changed.
lifecycle
Optional
public readonly lifecycle: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property lifecycle: Table's lifecycle.
schema
Optional
public readonly schema: IResolvable | SchemaProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | SchemaProperty
Property schema: Table schema.
stringSchema
Optional
public readonly stringSchema: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property stringSchema: Create a table with field names and field type strings.
Example: 'num bigint, num2 double', 'pt string'