nano-queries
Version:
Simple and powerful database-agnostic query builder (SQL & NoSQL)
13 lines (12 loc) • 471 B
TypeScript
import { Query } from './core/Query';
import { IQuery, PrimitiveValue, QuerySegment, RawQueryParameter } from './types';
export type QueryConstructorOptions = {
join?: string | null;
};
export declare class QueryBuilder extends Query implements IQuery {
private readonly options;
constructor({ join }?: QueryConstructorOptions);
raw(...segments: RawQueryParameter[]): this;
value: (value: PrimitiveValue) => this;
getSegments(): QuerySegment[];
}