Skip to content

DatabaseProps

Properties for defining a Database.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkpolardb"
&alicloudroscdkpolardb.DatabaseProps {
    CharacterSetName: interface{},
    DbClusterId: interface{},
    DbName: interface{},
    AccountName: interface{},
    AccountPrivilege: interface{},
    Collate: interface{},
    Ctype: interface{},
    DbDescription: interface{},
}

Properties

Name Type Description
CharacterSetName interface{} Property characterSetName: The character set of the database.
DbClusterId interface{} Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a database is to be created.
DbName interface{} Property dbName: The name of the database to be created.
AccountName interface{} Property accountName: The name of the database account to be used.
AccountPrivilege interface{} Property accountPrivilege: The permissions of the database account on the database.
Collate interface{} Property collate: A locale setting that specifies the collation for newly created databases.
Ctype interface{} Property ctype: A locale setting that specifies the character classification of the database.
DbDescription interface{} Property dbDescription: The description of the database.

CharacterSetNameRequired

CharacterSetName interface{}
  • Type: interface{}

Property characterSetName: The character set of the database.

For more information, see Character sets.


DbClusterIdRequired

DbClusterId interface{}
  • Type: interface{}

Property dbClusterId: The ID of the ApsaraDB for POLARDB cluster for which a database is to be created.


DbNameRequired

DbName interface{}
  • Type: interface{}

Property dbName: The name of the database to be created.

The name must comply with the following rules: It must start with a lowercase letter and consist of lowercase letters, digits, hyphens (-), and underscores (_). It must end with a letter or a digit. It can be up to 64 characters in length.


AccountNameOptional

AccountName interface{}
  • Type: interface{}

Property accountName: The name of the database account to be used.


AccountPrivilegeOptional

AccountPrivilege interface{}
  • Type: interface{}

Property accountPrivilege: The permissions of the database account on the database.

Valid values: ReadWrite: has read and write permissions on the database. ReadOnly: has the read-only permission on the database. DMLOnly: runs only data manipulation language (DML) statements. DDLOnly: runs only data definition language (DDL) statements. ReadIndex: has read and index permissions on the database. Default value: ReadWrite.


CollateOptional

Collate interface{}
  • Type: interface{}

Property collate: A locale setting that specifies the collation for newly created databases.

The locale must be compatible with the character set set by the CharacterSetName parameter.When the cluster is PolarDB PostgreSQL (compatible with Oracle) or PolarDB PostgreSQL, this parameter is required; when the cluster is PolarDB MySQL, this parameter is not supported.


CtypeOptional

Ctype interface{}
  • Type: interface{}

Property ctype: A locale setting that specifies the character classification of the database.

The locale must be compatible with the character set set by the CharacterSetName parameter. It is consistent with the incoming information of Collate. When the cluster is PolarDB PostgreSQL (compatible with Oracle) or PolarDB PostgreSQL, this parameter is required; when the cluster is PolarDB MySQL, this parameter is optional.


DbDescriptionOptional

DbDescription interface{}
  • Type: interface{}

Property dbDescription: The description of the database.

Valid values: It cannot start with http:// or https://. It must be 2 to 256 characters in length.