9 Replies
optimistic-gold•2y ago
Postgres offers the option to listen/notify
https://www.postgresql.org/docs/current/sql-notify.html
https://www.postgresql.org/docs/9.1/sql-listen.html
optimistic-gold•2y ago
It's a bit of a broad topic
genetic-orangeOP•2y ago
and if i using drizzle?
optimistic-gold•2y ago
I'd ask in their Discord, but pretty sure it's achievable (most likely using raw SQL)
genetic-orangeOP•2y ago
Thanks, and as it would be with "raw SQL", could you give me an example?
optimistic-gold•2y ago
Drizzle ORM - Magic sql`` operator
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
genetic-orangeOP•2y ago
yeah but how i do get the notification
optimistic-gold•2y ago
It's a bit complicated haha
cc @Rishi Raj Jain would be a cool guide for us to write
other-emerald•2y ago
@Mahmoud
Yup, totally. Already have a guide task for it.
@Aarón
Meanwhile, you can try this steps I posted in https://discord.com/channels/1176467419317940276/1178738361276563546/1242555629676134521.
They'd allow you to send and receive notifications with Neon.
