Skip to content

DatabaseProps

Properties for defining a Database.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-polardbx-database

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpolardbx"
&alicloudroscdkpolardbx.DatabaseProps {
    Accounts: interface{},
    CharacterSetName: interface{},
    DatabaseName: interface{},
    DbInstanceId: interface{},
    DatabaseDescription: interface{},
    Mode: interface{},
}

Properties

Name Type Description
Accounts interface{} Property accounts: List of accounts.
CharacterSetName interface{} Property characterSetName: Character set, which supports the following character sets: - utf8 * * - gbk - latin1 * * - *utf8mb4 * .
DatabaseName interface{} Property databaseName: The name of the database.
DbInstanceId interface{} Property dbInstanceId: The ID of the instance.
DatabaseDescription interface{} Property databaseDescription: Database description information.
Mode interface{} Property mode: The mode selected when creating the database.

AccountsRequired

Accounts interface{}
  • Type: interface{}

Property accounts: List of accounts.


CharacterSetNameRequired

CharacterSetName interface{}
  • Type: interface{}

Property characterSetName: Character set, which supports the following character sets: - utf8 * * - gbk - latin1 * * - *utf8mb4 * .


DatabaseNameRequired

DatabaseName interface{}
  • Type: interface{}

Property databaseName: The name of the database.


DbInstanceIdRequired

DbInstanceId interface{}
  • Type: interface{}

Property dbInstanceId: The ID of the instance.


DatabaseDescriptionOptional

DatabaseDescription interface{}
  • Type: interface{}

Property databaseDescription: Database description information.


ModeOptional

Mode interface{}
  • Type: interface{}

Property mode: The mode selected when creating the database.

The values are as follows:

  • auto: The database in this mode supports automatic partitioning, that is, you do not need to specify a partition key when creating a table;
  • drds: databases in this mode do not support automatic partitioning. When creating tables, you must use the dedicated database Shard syntax and specify the database shard key.