N
Neon2y ago
genetic-orange

'notification' event

How can I achieve this in neon?
No description
9 Replies
optimistic-gold
optimistic-gold2y ago
PostgreSQL Documentation
NOTIFY
NOTIFY NOTIFY — generate a notification Synopsis NOTIFY channel [ , payload ] Description The NOTIFY command sends a notification …
PostgreSQL Documentation
LISTEN
optimistic-gold
optimistic-gold2y ago
It's a bit of a broad topic
genetic-orange
genetic-orangeOP2y ago
and if i using drizzle?
optimistic-gold
optimistic-gold2y ago
I'd ask in their Discord, but pretty sure it's achievable (most likely using raw SQL)
genetic-orange
genetic-orangeOP2y ago
Thanks, and as it would be with "raw SQL", could you give me an example?
optimistic-gold
optimistic-gold2y ago
Drizzle ORM - Magic sql`` operator
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
genetic-orange
genetic-orangeOP2y ago
yeah but how i do get the notification
optimistic-gold
optimistic-gold2y ago
It's a bit complicated haha cc @Rishi Raj Jain would be a cool guide for us to write
other-emerald
other-emerald2y 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.

Did you find this page helpful?