JoinFn
type JoinFn<THKT extends PgSelectHKTBase, TTableName extends string | undefined, TSelectMode extends SelectMode, TJoinType extends JoinType, TSelection, TNullabilityMap extends Record<string, JoinNullability>> = <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>>;
§Type Parameters
§
THKT extends PgSelectHKTBase
[src]§
TSelectMode extends SelectMode
[src]§
TNullabilityMap extends Record<string, JoinNullability>
[src]§Type
§
<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>>
[src]