Module

x/justaos_orm/mod.ts>Query

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 Query
import { Query } from "https://dotland.deno.dev/x/justaos_orm@v6.4.0/mod.ts";

Constructors

new
Query(sql: any)

Methods

addColumn(column: ColumnDefinitionNative): Query
alter(nameWithSchema: string): Query
columns(...args: any[]): Query
create(nameWithSchema: string): Query
cursor(): Promise<any[]>
execute(sqlString?: string): Promise<any>
from(nameWithSchema: string): Query
getSQLQuery(): string
getType(): string | undefined
groupBy(columnName: string): Query
inherits(nameWithSchema: string | undefined): Query
into(nameWithSchema: string): Query
limit(limit: number): Query
offset(offset: number): Query
orderBy(columnNameOrOrderList?: string | OrderByType[], direction?: OrderByDirectionType): Query
returning(...args: any[]): Query
select(...args: any[]): Query
setQuery(query:
| DeleteQuery
| CreateQuery
| InsertQuery
| UpdateQuery
| AlterQuery
| undefined
)
value(row: any): Query
values(rows: any[]): Query
where(
column: string | number | boolean,
operator: any,
value?: any,
): Query
import Query
import { Query } from "https://dotland.deno.dev/x/justaos_orm@v6.4.0/mod.ts";