Writing

The DB AI Magic blog

Notes on building a universal database IDE — engineering, security, product and the occasional rant.

Engineering·9 min read

How our AI retry engine fixes its own SQL

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.

Read article
Engineering·12 min read

Adapter pattern across 25 database engines

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.

Read article