Skip to content

TableProps

Properties for defining a Table.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-maxcompute-table

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkmaxcompute"
&alicloudroscdkmaxcompute.TableProps {
    Name: interface{},
    Project: interface{},
    Comment: interface{},
    IfNotExists: interface{},
    Lifecycle: interface{},
    Schema: interface{},
    StringSchema: interface{},
}

Properties

Name Type Description
Name interface{} Property name: Table name.
Project interface{} Property project: Project name, if not provided, will be the default project.
Comment interface{} Property comment: Table comment.
IfNotExists interface{} 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 interface{} Property lifecycle: Table's lifecycle.
Schema interface{} Property schema: Table schema.
StringSchema interface{} Property stringSchema: Create a table with field names and field type strings.

NameRequired

Name interface{}
  • Type: interface{}

Property name: Table name.


ProjectRequired

Project interface{}
  • Type: interface{}

Property project: Project name, if not provided, will be the default project.


CommentOptional

Comment interface{}
  • Type: interface{}

Property comment: Table comment.


IfNotExistsOptional

IfNotExists interface{}
  • Type: interface{}

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.


LifecycleOptional

Lifecycle interface{}
  • Type: interface{}

Property lifecycle: Table's lifecycle.


SchemaOptional

Schema interface{}
  • Type: interface{}

Property schema: Table schema.


StringSchemaOptional

StringSchema interface{}
  • Type: interface{}

Property stringSchema: Create a table with field names and field type strings.

Example: 'num bigint, num2 double', 'pt string'