Open caryfitzhugh opened 12 months ago
I believe that this can help you achieve that https://github.com/windmill-labs/windmill-adapters/tree/main/postgres-listen
@slig Tiago is absolutely right but we can probably improve the system in 2 ways:
Is the database shared with windmill ? Otherwise what do you see the major con of having your syntax translate to sending a webhook?
We now support this under the form of persistent scripts, more details coming soon but they are available in: Runtime -> Persistent Scripts
Those scripts are meant to run for a duration such as 24h (and exit on userland after that time) and listen to events. They are automatically restarted upon exiting.
Looking at windmill, and a idea I had was to enable workflows to 'enrich' data as it is inserted into the DB.
Granted, I could put together a web-hook and have my PG database do some shenanigans to get that posted. Or I could trigger in some application code, but in the cases when there are multiple apps hitting a single DB, sometimes it might be nice to let the DB be the 'source of
truthtriggering)To be able to run something like:
Just an idea I was playing with in my head.