@sequeljs/ast
Version:
A SQL AST manager for JavaScript
65 lines • 3.32 kB
TypeScript
import And from '../nodes/And';
import Between from '../nodes/Between';
import DoesNotMatch from '../nodes/DoesNotMatch';
import Equality from '../nodes/Equality';
import GreaterThan from '../nodes/GreaterThan';
import GreaterThanOrEqual from '../nodes/GreaterThanOrEqual';
import Grouping from '../nodes/Grouping';
import In from '../nodes/In';
import IsDistinctFrom from '../nodes/IsDistinctFrom';
import IsNotDistinctFrom from '../nodes/IsNotDistinctFrom';
import LessThan from '../nodes/LessThan';
import LessThanOrEqual from '../nodes/LessThanOrEqual';
import Matches from '../nodes/Matches';
import NotEqual from '../nodes/NotEqual';
import NotIn from '../nodes/NotIn';
import NotRegexp from '../nodes/NotRegexp';
import Regexp from '../nodes/Regexp';
import type BindParam from '../nodes/BindParam';
import type Quoted from '../nodes/Quoted';
export default abstract class Predications {
protected groupingAll(method: (expr: any, ...extras: any[]) => any, others: any[], ...extras: any[]): Grouping;
protected groupingAny(method: (expr: any, ...extras: any[]) => any, others: any[], ...extras: any[]): Grouping;
protected isInfinity(value: any): boolean;
protected isOpenEnded(value: any): boolean;
protected isUnboundable(value: any): boolean;
doesNotMatch(other: any, escape?: any, caseSensitive?: boolean): DoesNotMatch;
doesNotMatchAll(others: any, escape?: any, caseSensitive?: boolean): Grouping;
doesNotMatchAny(others: any, escape?: any, caseSensitive?: boolean): Grouping;
doesNotMatchRegexp(other: any, caseSensitive?: boolean): NotRegexp;
eq(other: any): Equality;
eqAll(others: any[]): Grouping;
eqAny(others: any[]): Grouping;
gt(other: any): GreaterThan;
gtAll(others: any[]): Grouping;
gtAny(others: any[]): Grouping;
gteq(other: any): GreaterThanOrEqual;
gteqAll(others: any[]): Grouping;
gteqAny(others: any[]): Grouping;
inVal(other: any): In;
inAll(others: any[]): Grouping;
inAny(others: any[]): Grouping;
isNotDistinctFrom(other: any): IsNotDistinctFrom;
isDistinctFrom(other: any): IsDistinctFrom;
lt(other: any): LessThan;
ltAll(others: any[]): Grouping;
ltAny(others: any[]): Grouping;
lteq(other: any): LessThanOrEqual;
lteqAll(others: any[]): Grouping;
lteqAny(others: any[]): Grouping;
matches(other: any, escape?: any, caseSensitive?: boolean): Matches;
matchesAll(others: any[], escape?: any, caseSensitive?: boolean): Grouping;
matchesAny(others: any[], escape?: any, caseSensitive?: boolean): Grouping;
matchesRegexp(other: any, caseSensitive?: boolean): Regexp;
notEq(other: any): NotEqual;
notEqAll(others: any[]): Grouping;
notEqAny(others: any[]): Grouping;
notInVal(other: any): NotIn;
notInAll(others: any[]): Grouping;
notInAny(others: any[]): Grouping;
quotedNode(other: any): any;
quotedArray(others: any[]): any[];
between(begin: number | BindParam | Quoted, end: number | BindParam | Quoted, inclusive?: boolean): And | Between | GreaterThanOrEqual | LessThan | LessThanOrEqual | NotIn;
notBetween(begin: number | BindParam | Quoted, end: number | BindParam | Quoted, inclusive?: boolean): GreaterThan | GreaterThanOrEqual | Grouping | In | LessThan;
}
//# sourceMappingURL=Predications.d.ts.map