Skip to main content
Module

x/drizzle/zod.ts>createInsertSchema

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

Type Parameters

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

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"]}'`>