Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drizzle/zod.ts>createSelectSchema

Deno port of the drizzle-orm library
Latest
function createSelectSchema
import { createSelectSchema } from "https://deno.land/x/drizzle@v0.23.85/zod.ts";

Type Parameters

TTable extends Table
optional
TRefine extends Refine<TTable, "select"> = { }

Parameters

table: TTable
optional
refine: [K in keyof TRefine]: K extends keyof TTable["_"]["columns"] ? TRefine[K] : DrizzleTypeError<`Column '${K & string}' does not exist in table '${TTable["_"]["name"]}'`>