Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/justaos_orm/src/core/query-builder/DML/UpdateQuery.ts>default

JUSTAOS's ORM (Object–relational mapping) tool is built for Deno and provides transparent persistence for JavaScript objects to Postgres database.
Latest
class default
implements IQuery
import { default } from "https://deno.land/x/justaos_orm@v10.1.0/src/core/query-builder/DML/UpdateQuery.ts";

Constructors

new
default()

Methods

andWhere(
columnOrCompoundFunction:
| string
| number
| boolean
| ((where: WhereClause) => void)
,
operatorOrValue?: TWhereClauseOperator | any,
value?: any,
): UpdateQuery

This method is used to set the AND where clause for the delete query. (same as where)

buildQuery(): string
into(tableName: string): UpdateQuery
orWhere(
columnOrCompoundFunction:
| string
| number
| boolean
| ((where: WhereClause) => void)
,
operatorOrValue?: TWhereClauseOperator | any,
value?: any,
): UpdateQuery

This method is used to set the or where clause for the delete query.

returning(columnNameOrObjectOrArray?: string | string[] | { [key: string]: boolean; }, ...otherColumns: string[]): UpdateQuery

This method is used to set the returning columns for the update query.

set(columnOrRecord: string | { [key: string]: any; }, value?: any): UpdateQuery
where(
columnOrCompoundFunction:
| string
| number
| boolean
| ((where: WhereClause) => void)
,
operatorOrValue?: TWhereClauseOperator | any,
value?: any,
): UpdateQuery

This method is used to set the AND where clause for the delete query.