class default
extends TableDefinitionHandler
import { default } from "https://deno.land/x/justaos_orm@v10.0.0/src/table/Table.ts";
Constructors
new
default(pool: DatabaseConnectionPool,
tableDefinition: TTableDefinition,
registriesHandler: RegistriesHandler,
logger: Logger,
context?: TRecordInterceptorContext,
Methods
andWhere(): Table
This method is used to set the AND where clause. (same as where)
convertRawRecordToRecord(rawRecord: TRecord): Record
count(): Promise<number>
Disable all triggers on the table
disableIntercept(interceptName: string): void
disableIntercepts(): void
Enable all triggers on the table
enableIntercepts(): void
getContext(): TRecordInterceptorContext | 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
initializeQuery(): void
intercept(operation: TRecordInterceptorType, records: Record[]): Promise<Record[]>
Intercepts table operation
limit(limit: number): Table
offset(offset: number): Table
orderBy(columnNameOrOrderList?: string | TOrderBy[], direction?: TOrderByDirection): Table
orWhere(): Table
This method is used to set the or where clause for the table query.
where(): Table
This method is used to set the where clause for the table query.
Static Methods
getFullFormTableName(name: string): string
getShortFormTableName(name: string): string