@sequeljs/ast
Version:
A SQL AST manager for JavaScript
33 lines • 1.85 kB
TypeScript
import And from '../nodes/And';
import False from '../nodes/False';
import Grouping from '../nodes/Grouping';
import InnerJoin from '../nodes/InnerJoin';
import NamedSQLFunction from '../nodes/NamedSQLFunction';
import On from '../nodes/On';
import StringJoin from '../nodes/StringJoin';
import TableAlias from '../nodes/TableAlias';
import True from '../nodes/True';
import Relation from '../interfaces/Relation';
import FullOuterJoin from '../nodes/FullOuterJoin';
import OuterJoin from '../nodes/OuterJoin';
import RightOuterJoin from '../nodes/RightOuterJoin';
import SQLLiteral from '../nodes/SQLLiteral';
export default abstract class FactoryMethods {
coalesce(...exprs: any[]): NamedSQLFunction;
createAnd(clauses: any[]): And;
createFalse(): False;
createJoin(to: string | Relation | SQLLiteral | null): InnerJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any): InnerJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any, Klass: typeof FullOuterJoin): FullOuterJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any, Klass: typeof InnerJoin): InnerJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any, Klass: typeof OuterJoin): OuterJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any, Klass: typeof RightOuterJoin): RightOuterJoin;
createJoin(to: string | Relation | SQLLiteral | null, constraint: any, Klass: typeof StringJoin): StringJoin;
createOn(expr: any): On;
createStringJoin(to: string | Relation | SQLLiteral | null): StringJoin;
createTableAlias(relation: Grouping | Relation, name: string | SQLLiteral): TableAlias;
createTrue(): True;
grouping(expr: any): Grouping;
lower(column: any): NamedSQLFunction;
}
//# sourceMappingURL=FactoryMethods.d.ts.map