A database object that supports privileges.

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

  • Creates a new Securable.

    Parameters

    • qualifier: string

      A prefix for the object (e.g. "SCHEMA")

    • name: string

      The object name

    Returns Securable

Accessors

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

    Returns string

    This object name for use in a GRANT statement

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

    Returns string

    The name of this database object

Methods

  • 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