(close! source)
(create-notification-source db config)
Creates a notification source using Postgres LISTEN/NOTIFY.
Should be used in a with-open
or close
d after use.
Creates a notification source using Postgres LISTEN/NOTIFY. Should be used in a `with-open` or `close`d after use.
(notifications source)
Given a notification source
returns a (manifold) stream of notification
messages containing:
everest.pg.notification/probable-next-position
- indication of a next
position in the stream that should be read from in order to get latest
events. As the name indicates the actual position might have advanced farther
since the notification has been sent.Given a notification `source` returns a (manifold) stream of notification messages containing: * `everest.pg.notification/probable-next-position` - indication of a next position in the stream that should be read from in order to get latest events. As the name indicates the actual position might have advanced farther since the notification has been sent.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close