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

x/drizzle/zod.ts>BuildSelectSchema

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

Type Parameters

TTable extends Table
TRefine extends Refine<TTable, "select"> | { }
optional
TNoOptional extends boolean = false
definition: Simplify<[K in keyof TTable["_"]["columns"]]: MaybeOptional<TTable["_"]["columns"][K], K extends keyof TRefine ? Assume<UnwrapValueOrUpdater<TRefine[K]>, z.ZodTypeAny> : GetZodType<TTable["_"]["columns"][K]>, "select", TNoOptional>>