typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
43 lines (42 loc) • 1.28 kB
TypeScript
import { FindOperatorType } from "./FindOperatorType";
import { Connection } from "../";
/**
* Find Operator used in Find Conditions.
*/
export declare class FindOperator<T> {
/**
* Operator type.
*/
private _type;
/**
* Parameter value.
*/
private _value;
/**
* Indicates if parameter is used or not for this operator.
*/
private _useParameter;
/**
* Indicates if multiple parameters must be used for this operator.
*/
private _multipleParameters;
constructor(type: FindOperatorType, value: T | FindOperator<T>, useParameter?: boolean, multipleParameters?: boolean);
/**
* Indicates if parameter is used or not for this operator.
* Extracts final value if value is another find operator.
*/
readonly useParameter: boolean;
/**
* Indicates if multiple parameters must be used for this operator.
* Extracts final value if value is another find operator.
*/
readonly multipleParameters: boolean;
/**
* Gets the final value needs to be used as parameter value.
*/
readonly value: T;
/**
* Gets SQL needs to be inserted into final query.
*/
toSql(connection: Connection, aliasPath: string, parameters: string[]): string;
}