Skip to content

Notification

[Source]

A notification received via PostgreSQL's LISTEN/NOTIFY mechanism. Contains the channel name, payload string, and process ID of the notifying backend.

Subscribe to notifications by executing LISTEN channel_name via Session.execute(). Unsubscribe with UNLISTEN channel_name or UNLISTEN * to remove all subscriptions.

class val Notification

Constructors

create

[Source]

new val create(
  channel': String val,
  payload': String val,
  pid': I32 val)
: Notification val^

Parameters

Returns


Public fields

let channel: String val

[Source]


let payload: String val

[Source]


let pid: I32 val

[Source]