PgDelete
interface PgDelete <TTable extends AnyPgTable, TQueryResult extends QueryResultHKT, TReturning extends Record<string, unknown> | undefined = undefined> extends QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]> {}
class PgDelete<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;
execute: ReturnType<this["prepare"]>["execute"];
prepare(name: string): PreparedQuery<PreparedQueryConfig & {
execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[];
}>;returning(): PgDelete<TTable, TQueryResult, InferModel<TTable>>;
returning<TSelectedFields extends SelectedFieldsFlat>(fields: TSelectedFields): PgDelete<TTable, TQueryResult, SelectResultFields<TSelectedFields>>;
§Extends
§
QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
[src]§Extends
§
QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
[src]§Implements
§Properties
§Methods
§
prepare(name: string): PreparedQuery<PreparedQueryConfig & {
[src]execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[];
}>§
returning(): PgDelete<TTable, TQueryResult, InferModel<TTable>>
[src]returning<TSelectedFields extends SelectedFieldsFlat>(fields: TSelectedFields): PgDelete<TTable, TQueryResult, SelectResultFields<TSelectedFields>>
[src]