v0.28.0 — database query builder
A driver-agnostic query builder — the foundation of Keel's data layer:
setConnection(myConnection, "postgres"); // any driver, two methods
await db("users").where("active", true).orderBy("name").get();
await db("users").where("id", 1).first();
await db("posts").whereIn("id", [1, 2, 3]).count();
const id = await db("users").insertGetId({ email, name });Parameterized SQL (injection-safe) through a two-method Connection — works with D1, Neon/Postgres, PlanetScale, Turso, better-sqlite3, and pg. The core imports no driver, so it stays edge-safe. An active-record Model layer + migrations build on this next. See docs/database.md.