Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PgInsertBuilder

class PgInsertBuilder<TTable extends AnyPgTable, TQueryResult extends QueryResultHKT> {
constructor(
table: TTable,
session: PgSession,
dialect: PgDialect,
);
private dialect;
private session;
private table;
 
values(value: PgInsertValue<TTable>): PgInsert<TTable, TQueryResult>;
values(values: PgInsertValue<TTable>[]): PgInsert<TTable, TQueryResult>;
values(...values: PgInsertValue<TTable>[]): PgInsert<TTable, TQueryResult>;
}

§Type Parameters

§
TTable extends AnyPgTable
[src]
§
TQueryResult extends QueryResultHKT
[src]

§Constructors

§
new PgInsertBuilder(table: TTable, session: PgSession, dialect: PgDialect)
[src]

§Properties

§
dialect
[src]
§
session
[src]
§
table
[src]

§Methods

§
values(value: PgInsertValue<TTable>): PgInsert<TTable, TQueryResult>
[src]
values(values: PgInsertValue<TTable>[]): PgInsert<TTable, TQueryResult>
[src]
values(...values: PgInsertValue<TTable>[]): PgInsert<TTable, TQueryResult> deprecated
[src]
@deprecated

Pass the array of values without spreading it.