Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drizzle/pg-core/query-builders.ts>PgDelete

Deno port of the drizzle-orm library
Latest
class PgDelete
implements SQLWrapper
extends QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
import { PgDelete } from "https://deno.land/x/drizzle@v0.23.85/pg-core/query-builders.ts";

Constructors

new
PgDelete(
table: TTable,
session: PgSession,
dialect: PgDialect,
)

Type Parameters

TTable extends AnyPgTable
TQueryResult extends QueryResultHKT
optional
TReturning extends Record<string, unknown> | undefined = undefined

Properties

private
_prepare
private
config
private
dialect
private
session
execute: ReturnType<this["prepare"]>["execute"]

Methods

prepare(name: string): PreparedQuery<PreparedQueryConfig & { execute: TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]; }>
returning<TSelectedFields extends SelectedFieldsFlat>(fields: TSelectedFields): PgDelete<TTable, TQueryResult, SelectResultFields<TSelectedFields>>
toSQL(): Simplify<Omit<Query, "typings">>
where(where: SQL | undefined): Omit<this, "where">
interface PgDelete
implements QueryPromise<TReturning extends undefined ? QueryResultKind<TQueryResult, never> : TReturning[]>
import { type PgDelete } from "https://deno.land/x/drizzle@v0.23.85/pg-core/query-builders.ts";

Type Parameters

TTable extends AnyPgTable
TQueryResult extends QueryResultHKT
optional
TReturning extends Record<string, unknown> | undefined = undefined