Hi. Is there a way to call external endpoints (or Cloudflare Worker APIs) on D1 table changes (insert, update, delete)? Something like Firebase Functions for Firestore or Webhooks for Supabase (for those that are familiar).
Wrangler Proxy exposes Workers API to outside and integrate to your favorite frameworks. Compatible with DrizzleORM. - GitHub - chientrm/wrangler-proxy: Wrangler Proxy exposes Workers API to outsid...
How can I use this to watch for changes in the D1 tables? To be more clear, the goal is that every time there are inserts, updates, deletes in my tables, a function should be automatically triggered to send the corresponding data to an external endpoint.
We've been heads down iterating on D1, and we've just shipped a major new version that's substantially faster, more reliable, and introduces Time Travel: the ability to restore a D1 database to any point in time.
I think that is different question than mine. I am trying to see if i can stream the response from SELECT query directly to client instead of loading the result in worker memory. let's say i have a query that returns large amount of data, which is over the worker memory limit of 128MB, streaming the response without loading into buffer would be only way to workaround worker memory limit.
If DOs had TTL on keys it would be better priced than kv but you would have to set an alarm so there it would still be multiple writes in weird ways lol