Skip to main content
Module

x/sql_builder/where.ts>Where

SQL query builder for Deno
Latest
class Where
import { Where } from "https://deno.land/x/sql_builder@v1.9.2/where.ts";

Where sub sql builder

Constructors

new
Where(expr: string, params: any[])

Properties

private
expr: string
private
params: any[]
readonly
value: string

Methods

toString(): string

Static Methods

and(...expr: (null | undefined | Where)[]): Where
between(
field: string,
startValue: any,
endValue: any,
)
eq(field: string, value: any)
expr(expr: string, ...params: any[]): Where
field(name: string)
from(data: any): Where

eq from object

gt(field: string, value: any)
gte(field: string, value: any)
in(field: string, ...values: any[])
isNotNull(field: string)
isNull(field: string)
like(field: string, value: any)
lt(field: string, value: any)
lte(field: string, value: any)
ne(field: string, value: any)
notIn(field: string, ...values: any[])
or(...expr: (null | undefined | Where)[]): Where