pgx
pgx copied to clipboard
Retrieve client warning
Hi,
Thanks for pgx. It's awesome.
I wonder how to retrieve client warning. e.g. when revoking a role you're not the grantor:
> REVOKE "writers" FROM "alain";
WARNING: role "alain" has not been granted membership in role "writers" by role "ldap2pg"
REVOKE ROLE
>
I may fail to found how in the documentation. Can you give me pointer ?
Regards, Étienne
You want to set OnNotice when you connect. https://pkg.go.dev/github.com/jackc/pgx/[email protected]/pgconn#Config