Schema code generation

A RAQ server publishes its public catalog contract at GET /schema. The document describes public relations, columns, nullability, and keys—not the physical database schema.

Install and run the generator:

pnpm add -D @raquery/schema
pnpm exec raq-schema http://127.0.0.1:8001 \
  --out src/generated/raq-schema.ts

Use the generated client:

import { client } from "./generated/raq-schema";

const products = client.endpoint("products");
const response = await products.run(products.relation("products"));

response.rows[0].price;

Generated bindings currently type endpoint names, relation names, and source rows. Predicate and projection inference remain preview work.