Append-only D1 credit ledger without SELECT FOR UPDATE
Cloudflare D1 is SQLite. The Worker SQL API does not expose PostgreSQL-style SELECT FOR UPDATE, and a vendor generation call cannot sit inside one D1 batch. This case study describes the credit ledger that landed in …







