class default
extends TableDefinitionHandler
import { default } from "https://dotland.deno.dev/x/justaos_orm@v9.1.2/src/table/Table.ts";
Constructors
new
default(queryBuilder: Query,
tableDefinition: TableDefinition,
registriesHandler: RegistriesHandler,
logger: Logger,
pool: pg.Pool,
context?: DatabaseOperationContext,
Methods
convertRawRecordToRecord(rawRecord: RawRecord): Record
count(): Promise<number>
disableIntercept(interceptName: string): void
disableIntercepts(): void
enableIntercepts(): void
getContext(): DatabaseOperationContext | undefined
getRecord(idOrColumnNameOrFilter: UUID4 | string | { [key: string]: any; }, value?: any): Promise<Record | undefined>
Get a record by its ID or a column name and value
getSelectedColumns(): string[]
limit(limit: number): Table
offset(offset: number): Table
orderBy(columnNameOrOrderList?: string | OrderByType[], direction?: OrderByDirectionType): Table
select(): Table
where(): Table
column: string | number | boolean,
operator: any,
value?: any,
Static Methods
getFullFormTableName(name: string): string
getShortFormTableName(name: string): string