An assignment of privileges on a securable object (e.g. schema, table).

Hierarchy (view full)

Constructors

Accessors

Methods

Constructors

  • Creates a new Privileges object.

    Parameters

    • grantee: Role

      The role to receive the privileges

    • target: string

      The named resource for which the privileges apply

    • Rest...privileges: string[]

      The privileges to grant

    Returns Privileges

Accessors

  • get entitlement(): string
  • Gets the role or privilege given to the grantee.

    Returns string

    The grant entitlement

  • get grantee(): Role
  • Gets the role being given entitlement.

    Returns Role

    The role receiving the grant

  • get privileges(): string[]
  • Returns string[]

    The privileges being granted

  • get target(): string
  • Returns string

    The named database object for which the privileges apply

Methods

  • Produces a SQL statement that creates this object.

    Returns string

    The SQL statement