SERVER / DATABASE / WRITE

Insert

Insert creates one record in a declared table and returns the created value. Database creates a ULID id when the value does not provide one.

Update records

CREATE

Validate input before the write

The handler binds a typed request body, keeps the table name static, and asks Database to require non-empty title and content values.

dowe
handler createBlog req
  db db name:"content"
  let body = req.body
  query created db:db.insert table:"blogs" value:{ title:body.title content:body.content createdAt:now } required:["title", "content"]
  return response status:201 json:{ ok:true data:created }

Static authority

The request cannot select a database name, table, or filesystem path.

Created binding

query created exposes the inserted record, including its generated id, to the response.

No client runtime

The write compiles to Rust server behavior; it does not execute user source through Node.js.