@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
21 lines • 1.01 kB
TypeScript
import { Alias } from "./alias";
import { QueryBuilders } from "./query-builders";
import type * as types from "../types";
export declare abstract class QueryBuilder<T> {
alias: Alias;
protected builders: QueryBuilders;
builder: types.QueryBuilder;
clazz: types.Constructor<T>;
constructor(alias: Alias, builders: QueryBuilders, builder: types.QueryBuilder, clazz: types.Constructor<T>);
abstract get from(): this;
get or(): this;
get not(): this;
count<T extends keyof types.Tables>(table: T, column: types.Columns<T>): this;
countGroupby<T extends keyof types.Tables>(table: T, column: types.Columns<T>): this;
andWhere(fn: (query: T) => void, alias?: Alias): this;
andWhereNot(func: (query: T) => void, alias?: Alias): this;
orWhere(fn: (query: T) => void, alias?: Alias): this;
orWhereNot(func: (query: T) => void, alias?: Alias): this;
usingQuery<T>(target: types.Constructor<T>, alias?: Alias): T;
}
//# sourceMappingURL=query-builder.d.ts.map