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

x/drizzle/table.ts>InferModel

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

Type Parameters

TTable extends AnyTable
optional
TInferMode extends "select" | "insert" = "select"
optional
TConfig extends { dbColumnNames: boolean; } = { dbColumnNames: false; }
definition: TInferMode extends "insert" ? Simplify<[Key in keyof TTable["_"]["columns"] & stringin keyof RequiredKeyOnly<MapColumnName<Key, TTable["_"]["columns"][Key], TConfig["dbColumnNames"]>, TTable["_"]["columns"][Key]>]: GetColumnData<TTable["_"]["columns"][Key], "query"> & [Key in keyof TTable["_"]["columns"] & stringin keyof OptionalKeyOnly<MapColumnName<Key, TTable["_"]["columns"][Key], TConfig["dbColumnNames"]>, TTable["_"]["columns"][Key]>]?: GetColumnData<TTable["_"]["columns"][Key], "query">> : [Key in keyof TTable["_"]["columns"] & stringin keyof MapColumnName<Key, TTable["_"]["columns"][Key], TConfig["dbColumnNames"]>]: GetColumnData<TTable["_"]["columns"][Key], "query">