Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PgNotification

A notification emited by Postgres.

Hierarchy

  • PgNotification

Index

Constructors

constructor

  • Returns PgNotification

  • Parameters

    Returns PgNotification

Methods

getChannel

  • getChannel(): string
  • Set the channel value.

    Returns string

getPayload

  • getPayload(): string
  • Set the payload value.

    Returns string

getProcessId

  • getProcessId(): number
  • Set the process id.

    Returns number

setChannel

  • Set the channel value.

    Parameters

    • channel: string

    Returns PgNotification

setPayload

  • Set the payload value.

    Parameters

    • payload: string

    Returns PgNotification

setProcessId

  • Set the process id.

    Parameters

    • processId: number

    Returns PgNotification

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc