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

x/qube/select.ts>SelectQueryBuilder

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

Constructors

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

Methods

protected
onBuild()
limit(n: number)
orWhere<C extends Column<T>, V extends T[C]>(
column: C,
val: V,
)
select<C extends R>(...s: ((C & Column<T>) | Selection<T>)[]): SelectQueryBuilder<T, C extends "*" ? R : C>
where<C extends Column<T>, V extends T[C]>(
column: C,
val: V,
)
whereRef(
column: Column<T>,
ref: string,
)