SubSelectPattern
Description
Interface with the methods available to make a sub-SELECT query.
Methods
select( ...projections: (string | Projectable<ProjectableToken>)[] ): WherePatternSet a list of variables and/or assignments to be retrieved by the sub-query.
Parameters
| Name | Type | Description |
|---|---|---|
The list of variables and/or assignments. IF no variable is provided, the behaviour will be the same as | ||
| (string | Projectable<ProjectableToken>)[] |
Returns
Object with the methods to keep constructing the sub-query.
selectDistinct( ...projections: (string | Projectable<ProjectableToken>)[] ): WherePatternSet a list of variables and/or assignments to be retrieved by the sub-query ensuring no repetitions in the set of solutions.
Parameters
| Name | Type | Description |
|---|---|---|
The list of variables and/or assignments. IF no variable is provided, the behaviour will be the same as | ||
| (string | Projectable<ProjectableToken>)[] |
Returns
Object with the methods to keep constructing the sub-query.
selectReduced( ...projections: (string | Projectable<ProjectableToken>)[] ): WherePatternSet a list of variables and/or assignments to be retrieved by the sub-query permitting eliminations of non-distinct solutions, but not ensuring a set of unique ones.
Parameters
| Name | Type | Description |
|---|---|---|
The list of variables and/or assignments. IF no variable is provided, the behaviour will be the same as | ||
| (string | Projectable<ProjectableToken>)[] |
Returns
Object with the methods to keep constructing the sub-query.
selectAll(): WherePatternSet that the sub-query must return all the solutions for the variables used in the where pattern matching.
Returns
Object with the methods to keep constructing the sub-query.
selectAllDistinct(): WherePatternSet that the sub-query must return all the solutions for the variables used in the where pattern matching, ensuring there is not duplicated solutions.
Returns
Object with the methods to keep constructing the sub-query.
selectAllReduced(): WherePatternSet that the sub-query must return all the solutions for the variables used in the where pattern matching, permitting eliminations of non-distinct solutions, but not ensuring a set of unique ones.
Returns
Object with the methods to keep constructing the sub-query.
SubSelectPattern
Description
Constant with the utils for SubSelectPattern objects.
Methods
createFrom<O extends object>( container: Container<undefined>, object: O ): O & SubSelectPatternFactory function that allows to crete a SubSelectPattern from the object provided.
Parameters
| Name | Type | Description |
|---|---|---|
| Container<undefined> | The related container with the data for the | |
| O | The base base from where to create the |
Returns
The SubSelectPattern statement created from the object provided.