@lightningkite/ktor-batteries
Version:
23 lines (22 loc) • 1.18 kB
TypeScript
import { Condition } from './Condition';
import { SortPart } from './SortPart';
import { PropChain } from './dsl';
import { ReifiedType } from '@lightningkite/khrysalis-runtime';
export declare class Query<T extends any> {
readonly condition: Condition<T>;
readonly orderBy: Array<SortPart<T>>;
readonly skip: number;
readonly limit: number;
constructor(condition?: Condition<T>, orderBy?: Array<SortPart<T>>, skip?: number, limit?: number);
static properties: string[];
static propertyTypes(T: ReifiedType): {
condition: (ReifiedType<unknown> | typeof Condition)[];
orderBy: (ArrayConstructor | (ReifiedType<unknown> | typeof SortPart)[])[];
skip: NumberConstructor[];
limit: NumberConstructor[];
};
copy: (values: Partial<Query<T>>) => this;
equals: (other: any) => boolean;
hashCode: () => number;
static constructorListcomSortPartcomQueryTIntIntFunction1comPropChaincomQueryTQueryTConditioncomQueryT<T extends any>(orderBy: SortPart<T>[] | undefined, skip: number | undefined, limit: number | undefined, makeCondition: ((a: PropChain<T, T>) => Condition<T>)): Query<T>;
}