Database

A set of methods for managing PostgreSQL Database resources.

JSON Representation

{
  "name": "string",
  "clusterId": "string",
  "owner": "string",
  "lcCollate": "string",
  "lcCtype": "string",
  "extensions": [
    {
      "name": "string",
      "version": "string"
    }
  ]
}
Field Description
name string

Name of the database.

clusterId string

ID of the PostgreSQL cluster that the database belongs to.

owner string

Name of the user assigned as the owner of the database.

lcCollate string

POSIX locale for string sorting order. Can only be set at creation time.

lcCtype string

POSIX locale for character classification. Can only be set at creation time.

extensions[] object

PostgreSQL extensions enabled for the database.

extensions[].
name
string

Name of the extension, e.g. pg_trgm or pg_btree. Extensions supported by MDB are listed in the Developer's Guide.

extensions[].
version
string

Version of the extension.

Methods

Method Description
create Creates a new PostgreSQL database in the specified cluster.
delete Deletes the specified PostgreSQL database.
get Returns the specified PostgreSQL Database resource.
list Retrieves the list of PostgreSQL Database resources in the specified cluster.
update Updates the specified PostgreSQL database.