Skip to main content

@webda/postgresReadme | API


Class: SQLComparisonExpression

Extends

  • ComparisonExpression

Constructors

new SQLComparisonExpression(operator, attribute, value)

new SQLComparisonExpression(operator, attribute, value): SQLComparisonExpression

Parameters

operator: ComparisonOperator

of the expression

attribute: string

of the object to read

value: any[] | value

Returns

SQLComparisonExpression

Inherited from

WebdaQL.ComparisonExpression.constructor

Source

core/lib/stores/webdaql/query.d.ts:187

Properties

attribute

attribute: string[]

Attribute to read from the object (split by .)

Inherited from

WebdaQL.ComparisonExpression.attribute

Source

core/lib/stores/webdaql/query.d.ts:180


operator

operator: ComparisonOperator

Inherited from

WebdaQL.ComparisonExpression.operator

Source

core/lib/stores/webdaql/query.d.ts:155


value

value: value | value[]

Right side of the comparison

Inherited from

WebdaQL.ComparisonExpression.value

Source

core/lib/stores/webdaql/query.d.ts:176

Methods

eval()

eval(target): boolean

Parameters

target: any

Returns

boolean

Inherited from

WebdaQL.ComparisonExpression.eval

Source

core/lib/stores/webdaql/query.d.ts:206


setAttributeValue()

setAttributeValue(target): void

Set the value of the attribute based on the assignment

If used as a Set expression

Parameters

target: any

Returns

void

Inherited from

WebdaQL.ComparisonExpression.setAttributeValue

Source

core/lib/stores/webdaql/query.d.ts:202


toString()

toString(): string

Returns

string

Inherited from

WebdaQL.ComparisonExpression.toString

Source

core/lib/stores/webdaql/query.d.ts:222


toStringAttribute()

toStringAttribute(): string

Returns

string

Overrides

WebdaQL.ComparisonExpression.toStringAttribute

Source

postgres/src/sqlstore.ts:37


toStringOperator()

toStringOperator(): ComparisonOperator

Allow subclass to create different display

Returns

ComparisonOperator

Inherited from

WebdaQL.ComparisonExpression.toStringOperator

Source

core/lib/stores/webdaql/query.d.ts:218


toStringValue()

toStringValue(value): string

Parameters

value: string | number | boolean | (string | number | boolean)[]

Returns

string

Overrides

WebdaQL.ComparisonExpression.toStringValue

Source

postgres/src/sqlstore.ts:30


getAttributeValue()

static getAttributeValue(target, attribute): any

Read the value from the object

Parameters

target: any

attribute: string[]

Returns

any

Inherited from

WebdaQL.ComparisonExpression.getAttributeValue

Source

core/lib/stores/webdaql/query.d.ts:195


likeToRegex()

static likeToRegex(like): RegExp

Parameters

like: string

Returns

RegExp

Inherited from

WebdaQL.ComparisonExpression.likeToRegex

Source

core/lib/stores/webdaql/query.d.ts:188