Skip to main content
Module

x/typeorm/src/index.ts>FindOperator

Forked from https://github.com/typeorm/typeorm
Latest
class FindOperator
Re-export
import { FindOperator } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Find Operator used in Find Conditions.

Constructors

new
FindOperator(
type: FindOperatorType,
value: T | FindOperator<T>,
useParameter?: boolean,
multipleParameters?: boolean,
)

Properties

private
_multipleParameters: boolean

Indicates if multiple parameters must be used for this operator.

private
_type: FindOperatorType

Operator type.

private
_useParameter: boolean

Indicates if parameter is used or not for this operator.

private
_value: T | FindOperator<T>

Parameter value.

readonly
multipleParameters: boolean

Indicates if multiple parameters must be used for this operator. Extracts final value if value is another find operator.

readonly
useParameter: boolean

Indicates if parameter is used or not for this operator. Extracts final value if value is another find operator.

readonly
value: T

Gets the final value needs to be used as parameter value.

Methods

toSql(
connection: Connection,
aliasPath: string,
parameters: string[],
): string

Gets SQL needs to be inserted into final query.