drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.47k stars 486 forks source link

[FEATURE]: Publish-subscribe feature #2102

Open DogeVenci opened 2 months ago

DogeVenci commented 2 months ago

Describe what you want

Like the LISTEN/NOTIFY function in postgres

vincent-thomas commented 2 months ago

This would be a REALLY handy feature, and I can imagine relatively simple. And maybe, defining event schemas with zod and types? That would be really nice, and remove the need for a external pub sub system

anis-dr commented 1 month ago

This would be really nice

N0tExisting commented 4 days ago

If you are looking for a basic implementation, this repo might help: https://github.com/grmkris/drizzle-pg-notify-audit-table/