How do I implement LISTEN/NOTIFY using a native database/sql connection?
#1301
Answered
by
jackc
abhijit-hota
asked this question in
Q&A
-
|
I'm using |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Sep 7, 2022
Replies: 1 comment 1 reply
-
|
Use conn.Raw() to get a Then use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
abhijit-hota
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use conn.Raw() to get a
*pgx.Connfrom a*sql.Conn. See https://pkg.go.dev/github.com/jackc/pgx/v4@v4.17.2/stdlib for example.Then use the
*pgx.Connas you would outside ofdatabase/sql.