PgUpdate
interface PgUpdate <TTable extends AnyPgTable, TQueryResult extends QueryResultHKT, TReturning extends Record<string, unknown> | undefined = undefined> extends QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>, SQLWrapper {}
class PgUpdate<TTable extends AnyPgTable, TQueryResult extends QueryResultHKT, TReturning extends Record<string, unknown> | undefined = undefined> extends QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]> implements SQLWrapper { }
private _prepare;
private config;
private dialect;
private session;
readonly _: {
readonly table: TTable;
readonly return: TReturning;
};execute: ReturnType<this["prepare"]>["execute"];
prepare(name: string): PreparedQuery<PreparedQueryConfig & {
execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[];
}>;returning(): PgUpdate<TTable, TQueryResult, InferModel<TTable>>;
returning<TSelectedFields extends SelectedFields>(fields: TSelectedFields): PgUpdate<TTable, TQueryResult, SelectResultFields<TSelectedFields>>;
toSQL(): Omit<Query, "typings">;
§Extends
§
QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
[src]§Extends
§
QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
[src]§Implements
§Constructors
§Properties
§Methods
§
prepare(name: string): PreparedQuery<PreparedQueryConfig & {
[src]execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[];
}>§
returning(): PgUpdate<TTable, TQueryResult, InferModel<TTable>>
[src]returning<TSelectedFields extends SelectedFields>(fields: TSelectedFields): PgUpdate<TTable, TQueryResult, SelectResultFields<TSelectedFields>>
[src]