Module

x/justaos_orm/src/query/QueryExpression.ts>QueryExpression

JUSTAOS's ORM (Object–relational mapping) tool is built for Deno and provides transparent persistence for JavaScript objects to Postgres database.
Go to Latest
class QueryExpression
import { QueryExpression } from "https://dotland.deno.dev/x/justaos_orm@v9.1.2/src/query/QueryExpression.ts";

Constructors

new
QueryExpression(type: "SIMPLE" | "COMPOUND", condition?: { column: string | number | boolean; operator: any; value?: any; })

Properties

optional
compoundOperator: CompoundOperator
optional
condition: SimpleCondition
expressions: QueryExpression[]
type: "SIMPLE" | "COMPOUND"

Methods

andWhere(
column: string | number | boolean,
operator: any,
value?: any,
): QueryExpression
orWhere(
column: string | number | boolean,
operator: any,
value?: any,
): QueryExpression