A PostgreSQL database.

Hierarchy (view full)

Implements

Constructors

  • Creates a new Catalog.

    Parameters

    • name: string
    • encoding: string = "UTF8"
    • Optionallocale: string

    Returns Catalog

Accessors

  • get encoding(): string
  • Returns string

    The default encoding for this database

  • get grantName(): string
  • Formats this object for use in a GRANT statement.

    Returns string

    This object name for use in a GRANT statement

  • get locale(): undefined | string
  • Returns undefined | string

    The default locale for this database

  • get name(): string
  • Gets the name of this database object.

    Returns string

    The name of this database object

Methods

  • Creates a new Schema object within this catalog.

    Parameters

    • name: string

      The name of the schema

    • Optionalowner: Role

      Optional, the owner of the schema

    Returns Schema

    The new schema object

  • Assigns privileges for this object to a role.

    Parameters

    • grantee: Role

      The role to receive the privileges

    • Rest...privileges: string[]

      The privileges to grant

    Returns Privileges

    The grant statement

  • Produces a SQL statement that creates this object.

    Returns string

    The SQL statement