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

x/drizzle/pg-core.ts>JoinFn

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

Type Parameters

THKT extends PgSelectHKTBase
TTableName extends string | undefined
TSelectMode extends SelectMode
TJoinType extends JoinType
TSelection
TNullabilityMap extends Record<string, JoinNullability>
definition: <TJoinedTable extends AnyPgTable | Subquery | SQL, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable, on: ((aliases: TSelection) => SQL | undefined) | SQL | undefined) => PgSelectKind<THKT, TTableName, AppendToResult<TTableName, TSelection, TJoinedName, TJoinedTable extends AnyPgTable ? TJoinedTable["_"]["columns"] : TJoinedName extends Subquery ? Assume<TJoinedName["_"]["selectedFields"], SelectedFields> : never, TSelectMode>, TSelectMode extends "partial" ? TSelectMode : "multiple", AppendToNullabilityMap<TNullabilityMap, TJoinedName, TJoinType>>