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.Conn
from a*sql.Conn
. See https://pkg.go.dev/github.com/jackc/pgx/[email protected]/stdlib for example.Then use the
*pgx.Conn
as you would outside ofdatabase/sql
.