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@v6.4.0/src/query/QueryExpression.ts";

Constructors

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

Properties

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

Methods

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