#
Class: ScalarCriteriaNodeknex.ScalarCriteriaNode
#
Hierarchy↳ ScalarCriteriaNode
#
Constructors#
constructor+ new ScalarCriteriaNode(metadata
: MetadataStorage, entityName
: string, parent?
: ICriteriaNode, key?
: string, validate?
: boolean): ScalarCriteriaNode
#
Parameters:Name | Type | Default value |
---|---|---|
metadata | MetadataStorage | - |
entityName | string | - |
parent? | ICriteriaNode | - |
key? | string | - |
validate | boolean | true |
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:Name | Type |
---|---|
path | string |
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:Name | Type |
---|---|
qb | IQueryBuilder<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:Name | Type |
---|---|
qb | IQueryBuilder<T> |
Returns: string
Inherited from: CriteriaNode
Defined in: packages/knex/src/query/CriteriaNode.ts:64
#
shouldInlineâ–¸ shouldInline(payload
: any): boolean
#
Parameters:Name | Type |
---|---|
payload | any |
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:Name | Type |
---|---|
payload | any |
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:Name | Type |
---|---|
qb | IQueryBuilder<T> |
alias? | string |
Returns: boolean
Inherited from: CriteriaNode
Defined in: packages/knex/src/query/CriteriaNode.ts:40
#
isCustomExpressionâ–¸ Static
isCustomExpression(field
: string): boolean
#
Parameters:Name | Type |
---|---|
field | string |
Returns: boolean
Inherited from: CriteriaNode
Defined in: packages/knex/src/query/CriteriaNode.ts:123