UNPKG

1.28 kBTypeScriptView Raw
1import { FindOperatorType } from "./FindOperatorType";
2import { Connection } from "../";
3/**
4 * Find Operator used in Find Conditions.
5 */
6export declare class FindOperator<T> {
7 /**
8 * Operator type.
9 */
10 private _type;
11 /**
12 * Parameter value.
13 */
14 private _value;
15 /**
16 * Indicates if parameter is used or not for this operator.
17 */
18 private _useParameter;
19 /**
20 * Indicates if multiple parameters must be used for this operator.
21 */
22 private _multipleParameters;
23 constructor(type: FindOperatorType, value: T | FindOperator<T>, useParameter?: boolean, multipleParameters?: boolean);
24 /**
25 * Indicates if parameter is used or not for this operator.
26 * Extracts final value if value is another find operator.
27 */
28 readonly useParameter: boolean;
29 /**
30 * Indicates if multiple parameters must be used for this operator.
31 * Extracts final value if value is another find operator.
32 */
33 readonly multipleParameters: boolean;
34 /**
35 * Gets the final value needs to be used as parameter value.
36 */
37 readonly value: T;
38 /**
39 * Gets SQL needs to be inserted into final query.
40 */
41 toSql(connection: Connection, aliasPath: string, parameters: string[]): string;
42}