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

x/qube/update.ts>UpdateQueryBuilder

Fast postgres query builder
Go to Latest
class UpdateQueryBuilder
implements Where
extends Builder<T, R>
import { UpdateQueryBuilder } from "https://deno.land/x/qube@0.0.0-beta.11/update.ts";

Constructors

new
UpdateQueryBuilder(table: string, pool?: Pool)

Methods

returning<C extends R>(...columns: ((C & Column<T>) | Selection<T>)[]): UpdateQueryBuilder<T, C extends "*" ? R : C>
set(mutation: Mutation<T>)
where<C extends Column<T>, V extends T[C]>(
column: C,
val: V,
)
whereRef(
column: Column<T>,
ref: string,
)