UNPKG

dynamicsmobile

Version:

Allows development of off-line mobile and web business apps over the Dynamics Mobile platform. More info on https://www.dynamicsmobile.com

20 lines (19 loc) 824 B
import { BusinessObjectBase } from './business-object'; export declare abstract class DbQuery<T extends BusinessObjectBase> { abstract fields(fields: Array<string>): DbQuery<T>; abstract filter(filterExpr: string): DbQuery<T>; abstract group(groupExpr: string): DbQuery<T>; abstract aggregate(aggregateExpr: string): DbQuery<T>; abstract sort(sortExpr: string): DbQuery<T>; abstract page(pageNo: number): DbQuery<T>; abstract limit(maxRecords: number): DbQuery<T>; abstract expand(expandExrp: string): DbQuery<T>; abstract executeSelect(): Promise<Array<T>>; abstract executeCreate(entity: T): Promise<{ keys: Array<string>; }>; abstract executeUpdate(entity: T): Promise<void>; abstract executeDelete(entity: { DMS_ROWID: string; }): Promise<void>; }