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
24.6k stars 649 forks source link

[FEATURE]: Publish-subscribe feature #2102

Open DogeVenci opened 7 months ago

DogeVenci commented 7 months ago

Describe what you want

Like the LISTEN/NOTIFY function in postgres

vincent-thomas commented 7 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 5 months ago

This would be really nice

N0tExisting commented 4 months ago

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