@libreworks/db-provision-pgsql
    Preparing search index...

    Class Privileges

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

    Hierarchy (View Summary)

    Index

    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

      • ...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