@liberation-data/drivine
Version:
Best and fastest graph database client for TypeScript / Node.js. Provides a level of abstraction for building highly scalable applications, without compromising architectural integrity
23 lines (22 loc) • 964 B
TypeScript
import { Statement } from './Statement';
import { ResultPostProcessor } from '../mapper/ResultPostProcessor';
import { QueryLanguage } from './QueryLanguage';
export type ClassType<T> = new (...args: any[]) => T;
export declare class QuerySpecification<T> {
statement: Statement;
parameters: any[];
postProcessors: ResultPostProcessor[];
_skip: number;
_limit: number;
static withStatement<T>(statement?: string | Statement): QuerySpecification<T>;
constructor(statement?: string | Statement);
withStatement(statement: string | Statement): this;
bind(parameters?: any[] | any): this;
addPostProcessors(...postProcessors: ResultPostProcessor[]): this;
map(mapper: (result: any) => T): this;
transform(type: ClassType<T>): this;
filter(filter: (results: any) => boolean): this;
skip(results: number): this;
limit(results: number): this;
finalizedCopy(language: QueryLanguage): QuerySpecification<T>;
}