Skip to main content
Version: 4.5

Class: ScalarCriteriaNode#

knex.ScalarCriteriaNode

Hierarchy#

Constructors#

constructor#

+ new ScalarCriteriaNode(metadata: MetadataStorage, entityName: string, parent?: ICriteriaNode, key?: string, validate?: boolean): ScalarCriteriaNode

Parameters:#

NameTypeDefault value
metadataMetadataStorage-
entityNamestring-
parent?ICriteriaNode-
key?string-
validatebooleantrue

Returns: ScalarCriteriaNode

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:12

Properties#

entityName#

Readonly entityName: string

Inherited from: CriteriaNode.entityName


key#

Optional Readonly key: string

Inherited from: CriteriaNode.key


metadata#

Protected Readonly metadata: MetadataStorage

Inherited from: CriteriaNode.metadata


parent#

Optional Readonly parent: ICriteriaNode

Inherited from: CriteriaNode.parent


payload#

payload: any

Inherited from: CriteriaNode.payload

Defined in: packages/knex/src/query/CriteriaNode.ts:11


prop#

Optional prop: EntityProperty<any>

Inherited from: CriteriaNode.prop

Defined in: packages/knex/src/query/CriteriaNode.ts:12

Methods#

[custom]#

[custom](): string

Returns: string

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:119


getPath#

getPath(): string

Returns: string

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:78


getPivotPath#

getPivotPath(path: string): string

Parameters:#

NameType
pathstring

Returns: string

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:115


process#

process<T>(qb: IQueryBuilder<T>, alias?: string): any

Type parameters:#

Name
T

Parameters:#

NameType
qbIQueryBuilder<T>
alias?string

Returns: any

Overrides: CriteriaNode

Defined in: packages/knex/src/query/ScalarCriteriaNode.ts:7


renameFieldToPK#

renameFieldToPK<T>(qb: IQueryBuilder<T>): string

Type parameters:#

Name
T

Parameters:#

NameType
qbIQueryBuilder<T>

Returns: string

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:64


shouldInline#

shouldInline(payload: any): boolean

Parameters:#

NameType
payloadany

Returns: boolean

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:36


shouldJoin#

shouldJoin(): boolean

Returns: boolean

Defined in: packages/knex/src/query/ScalarCriteriaNode.ts:25


shouldRename#

shouldRename(payload: any): boolean

Parameters:#

NameType
payloadany

Returns: boolean

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:44


willAutoJoin#

willAutoJoin<T>(qb: IQueryBuilder<T>, alias?: string): boolean

Type parameters:#

Name
T

Parameters:#

NameType
qbIQueryBuilder<T>
alias?string

Returns: boolean

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:40


isCustomExpression#

StaticisCustomExpression(field: string): boolean

Parameters:#

NameType
fieldstring

Returns: boolean

Inherited from: CriteriaNode

Defined in: packages/knex/src/query/CriteriaNode.ts:123

Last updated on by Renovate Bot