Your database
create table users ( id uuid primary key, email text not null, status user_status not null);create table posts ( id uuid primary key, user_id uuid references users);What it generates
// POST /v1/users/listconst { data } = await sdk.users.list({ where: { status: "active" }, include: { posts: true },});data[0].posts; // Post[]Tool
postgresdk. Point it at a Postgres database and it generates a typed Hono API plus a TypeScript client that matches it exactly.
- Postgres
- TypeScript