Module

x/justaos_orm/mod.ts>Table

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

Constructors

new
Table(
queryBuilder: Query,
schema: TableSchema,
operationInterceptorService: DatabaseOperationInterceptorService,
logger: Logger,
pool: pg.Pool,
)

Methods

count(): Promise<number>
disableIntercept(interceptName: string): void
execute(): Promise<any>
getColumnNames(): string[]
getName(): string
getRecord(idOrColumnNameOrFilter: UUID | string | { [key: string]: any; }, value?: any): Promise<Record | undefined>
getSchemaName(): string
getSelectedColumns(): string[]
getTableName(): string
intercept(): Promise<Record[]>
limit(limit: number): Table
offset(offset: number): Table
orderBy(columnNameOrOrderList?: string | OrderByType[], direction?: OrderByDirectionType): Table
select(...args: any[]): Table
toArray(): Promise<Record[]>
where(
column: string | number | boolean,
operator: any,
value?: any,
): Table
import Table
import { Table } from "https://dotland.deno.dev/x/justaos_orm@v7.1.0/mod.ts";