class PgInsert
implements SQLWrapper
extends QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
import { PgInsert } from "https://deno.land/x/drizzle@v0.23.85/pg-core/query-builders.ts";
Constructors
Type Parameters
TTable extends AnyPgTable
TQueryResult extends QueryResultHKT
Properties
_: { table: TTable; return: TReturning; }
Methods
onConflictDoNothing(config?: { target?: IndexColumn | IndexColumn[]; where?: SQL; }): this
onConflictDoUpdate(config: { target: IndexColumn | IndexColumn[]; where?: SQL; set: PgUpdateSetSource<TTable>; }): this
prepare(name: string): PreparedQuery<PreparedQueryConfig & { execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]; }>
returning<TSelectedFields extends SelectedFieldsFlat>(fields: TSelectedFields): PgInsert<TTable, TQueryResult, SelectResultFields<TSelectedFields>>
interface PgInsert
implements QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>, SQLWrapper
import { type PgInsert } from "https://deno.land/x/drizzle@v0.23.85/pg-core/query-builders.ts";
Type Parameters
TTable extends AnyPgTable
TQueryResult extends QueryResultHKT