Letting a language model write SQL once is easy. Letting it recover from a real database error — five times in a row — turns out to take an opinionated little state machine. Here's what's inside ours.
Every connection string in DB AI Magic is sealed with AES-256-GCM before it touches our database. A walk through the key hierarchy, decrypt budget and audit story.
How we stream paged result sets from Postgres into AG Grid over a Socket.IO channel, cancel mid-flight, and keep the UI responsive when a query goes long.
The product principle behind DB AI Magic: an analyst, a PM and an engineer should all be able to safely talk to the same database without filing a ticket.
A single TypeScript interface, twenty-five wildly different wire protocols. What we learned about generalising the parts that matter — and resisting the temptation to generalise the parts that don't.