A modification to the default privileges used when objects are created.

Implements

Constructors

  • Creates a new AlterDefaultPrivileges.

    Parameters

    • privileges: Privileges

      The privileges to define

    • Optionalcreator: Role

      Optional, the role doing the creating

    • Optionalschema: Schema

      Optional, The schema in which the privileges apply

    Returns DefaultPrivileges

Accessors

  • get creator(): undefined | Role
  • Returns undefined | Role

    The role whose creations use the default privileges

  • get schema(): undefined | Schema
  • Returns undefined | Schema

    The schema in which the privileges apply

Methods

  • Constrains these defaults to a specific creator.

    Parameters

    • creator: Role

      The role whose creations use the default privileges

    Returns DefaultPrivileges

    A copy of this object, constrained to the given creator

  • Constrains these defaults to a specific schema.

    Parameters

    • schema: Schema

      The schema in which the privileges apply

    Returns DefaultPrivileges

    A copy of this object, constrained to the given schema

  • Produces a SQL statement that creates this object.

    Returns string

    The SQL statement