package
0.0.0-20240914090759-22fe844ec72e
Repository: https://github.com/couchbase/query.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
Copy WindowTerm
*/.
Return when aggregate are aggregate are same except names
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This method creates a new function using the
input expression name and operands, and returns it
as a pointer to an AggregateBase struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The function NewArrayAgg calls NewAggregateBase to
create an aggregate function named ARRAY_AGG with
one expression as input.
The function NewAvg calls NewAggregateBase to
create an aggregate function named AVG with
one expression as input.
No description provided by the author
The function NewCommitTransaction returns a pointer to the CommitTransaction
struct by assigning the input attributes to the fields of the struct
*/.
The function NewCount calls NewAggregateBase to
create an aggregate function named COUNT with
one expression as input.
The function NewCountn calls NewAggregateBase to
create an aggregate function named COUNTN with
one expression as input.
No description provided by the author
The function NewCreateCollection returns a pointer to the
CreateCollection struct with the input argument values as fields.
The function NewCreateFunction returns a pointer to the
CreateFunction struct with the input argument values as fields.
No description provided by the author
The function NewCreateIndex returns a pointer to the
CreateIndex struct with the input argument values as fields.
The function NewCreatePrimaryIndex returns a pointer
to the CreatePrimaryIndex struct with the input
argument values as fields.
The function NewCreateScope returns a pointer to the
CreateScope struct with the input argument values as fields.
No description provided by the author
No description provided by the author
The function NewCumeDist calls NewAggregateBase to
create an aggregate function named CumeDist
*/.
No description provided by the author
The function NewDelete returns a pointer to the Delete
struct by assigning the input attributes to the fields
of the struct
*/.
The function NewDenseRank calls NewAggregateBase to
create an aggregate function named DenseRank
*/.
No description provided by the author
No description provided by the author
derived from USE INDEX.
No description provided by the author
No description provided by the author
The function NewDropCollection returns a pointer to the
DropCollection struct with the input argument values as fields.
The function NewDropFunction returns a pointer to the
DropFunction struct with the input argument values as fields.
No description provided by the author
The function NewDropIndex returns a pointer to the
DropIndex struct with the input argument values as fields.
The function NewDropScope returns a pointer to the
DropScope struct with the input argument values as fields.
No description provided by the author
No description provided by the author
The function NewExcept returns a pointer to the
Except struct with the input argument used to set
the first and second fields in the subresult.
The function NewExceptAll returns a pointer to the
ExceptAll struct with the input argument used to set
the first and second fields in the subresult.
The function NewExecute returns a pointer to the Execute
struct with the input argument expressions value as a field.
The function NewExecuteFunction returns a pointer to the
ExecuteFunction struct with the input argument values as fields.
The function NewExists uses the NewExists method to
create a new Exists function with one operand.
The function NewExplain returns a pointer to the Explain
struct that has its field stmt set to the input Statement.
The function NewExplainFunction returns a pointer to the ExplainFunction struct with the input argument values as fields.
Constructor.
The function NewFirstValue calls NewAggregateBase to
create an aggregate function named FirstValue
*/.
The function NewFlushCollection returns a pointer to the
FlushCollection struct with the input argument values as fields.
No description provided by the author
The function NewGrantRole returns a pointer to the
GrantRole struct with the input argument values as fields.
The function NewGroup returns a pointer to the Group
struct that has its field sort terms set to the input
argument expressions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The function NewIndexKeyTerm returns a pointer to the IndexKeyTerm
struct that has its fields set to the input arguments.
No description provided by the author
No description provided by the author
The function NewIndexPartitionTerm returns a pointer to the IndexPartitionTerm
struct that has its fields set to the input arguments.
No description provided by the author
No description provided by the author
No description provided by the author
The function NewInsertSelect returns a pointer to the Insert
struct by assigning the input attributes to the fields of the
struct, and setting values to nil.
The function NewInsertValues returns a pointer to the Insert
struct by assigning the input attributes to the fields of the
struct, and setting key, value and query to nil.
The function NewIntersect returns a pointer to the
Intersect struct with the input argument used to set
the first and second fields in the subresult.
The function NewIntersectAll returns a pointer to the
IntersectAll struct with the input argument used to set
the first and second fields in the subresult.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The function NewLag calls NewAggregateBase to
create an aggregate function named Lag
*/.
The function NewLastValue calls NewAggregateBase to
create an aggregate function named LastValue
*/.
The function NewLead calls NewAggregateBase to
create an aggregate function named Lead
*/.
The function NewMax calls NewAggregateBase to
create an aggregate function named MAX with
one expression as input.
The function NewMedian calls NewAggregateBase to
create an aggregate function named Median with
one expression as input.
The function NewMerge returns a pointer to the Merge
struct by assigning the input attributes to the fields
of the struct.
The function NewMergeActions returns a pointer to the
MergeActions struct by assigning the input attributes
to the fields of the struct.
The function NewMergeDelete returns a pointer to the
MergeDelete struct by assigning the input attributes
to the fields of the struct.
The function NewMergeInsert returns a pointer to the MergeInsert
struct by assigning the input attributes to the fields of the
struct.
The function NewMergeSourceExpression returns a pointer
to the MergeSource struct by assigning the input
attributes to the fields of the struct, setting
the expr and the alias.
The function NewMergeSourceFrom returns a pointer
to the MergeSource struct by assigning the input
attributes to the fields of the struct, setting
the from keyspace term and the alias.
The function NewMergeSourceSelect returns a pointer
to the MergeSource struct by assigning the input
attributes to the fields of the struct, setting
the query and the alias.
The function NewMergeUpdate returns a pointer to the
MergeUpdate struct by assigning the input attributes
to the fields of the struct.
The function NewMin calls NewAggregateBase to
create an aggregate function named MIN with
one expression as input.
The function NewNamedParameter returns a pointer to the
NamedParameter struct with the input argument name as a
field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The function NewNthValue calls NewAggregateBase to
create an aggregate function named NthValue
*/.
No description provided by the author
hint_args == nil: hint is just an identifier with no paren, e.g.
No description provided by the author
The function NewOrder returns a pointer to the Order
struct that has its field sort terms set to the input
argument terms.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Creates a full path from a slice of identifiers and a query context if the slice contains a single keyspace, it behaves like NewPathWithContext() two elements are taken to mean scope.collection, and work with a queryContext of the form :bucket (namespace is either specified by the namespace parameter or set later) namespace:bucket (produces a long path) any other path length or query context yields an error.
Create a path from a namespace:bucket.scope.keyspace combination.
Create a scope path from a namespace:bucket.scope combination.
Create a scope path from an identifier and query context.
Create a path from a namespace:keyspace combination.
Create a path from three possible combinations: namespace:bucket namespace:keyspace (for backwards compatibility) namespace:bucket.scope.keyspace used for plan unmarshalling.
Creates a full path from a single identifier and a query context the query context is expected to be of the form blank (namespace is either specified by the namespace parameter or set later) :bucket.scope (namespace is either specified by the namespace parameter or set later) namespace: (produces a short path) namespace:bucket.scope (produces a long path) :bucket (produces a long path with the scope set to _default) namespace:bucket (as above).
The function NewPercentRank calls NewAggregateBase to
create an aggregate function named PercentRank
*/.
The function NewPositionalParameter returns a pointer
to the PositionalParameter struct with the input
argument position as a field.
The function NewPrepare returns a pointer to the
Prepare struct with the input argument statement
as a field.
The function NewProjection returns a pointer to the Projection
struct by assigning the input attributes to the fields of the
struct, and setting raw to false.
The function NewRank calls NewAggregateBase to
create an aggregate function named Rank
*/.
The function NewRatioToReport calls NewAggregateBase to
create an aggregate function named RatioToReport
*/.
The function NewRawProjection returns a pointer to the Projection
struct by assigning the input attributes to the fields of the
struct, and setting raw to true.
The function NewResultTerm returns a pointer to the
ResultTerm struct by assigning the input attributes
to the fields of the struct.
The function NewRevokeRole returns a pointer to the
RevokeRole struct with the input argument values as fields.
The function NewRollbackTransaction returns a pointer to the RollbackTransaction
struct by assigning the input attributes to the fields of the struct
*/.
The function NewRowNumber calls NewAggregateBase to
create an aggregate function named RowNumber
*/.
The function NewSavepoint returns a pointer to the SAVEPOINT <name> statement
struct by assigning the input attributes to the fields of the struct
*/.
No description provided by the author
The function NewSelect returns a pointer to the Select struct
by assigning the input attributes to the fields of the struct.
Constructor.
No description provided by the author
No description provided by the author
No description provided by the author
The function NewSortTerm returns a pointer to the SortTerm
struct that has its fields set to the input arguments.
The function NewStartTransaction returns a pointer to the StartTransaction
struct by assigning the input attributes to the fields of the struct
*/.
The function NewStddev calls NewAggregateBase to
create an aggregate function named Stddev with
one expression as input.
The function NewStddevPop calls NewAggregateBase to
create an aggregate function named stddev_pop with
one expression as input.
The function NewStddevSamp calls NewAggregateBase to
create an aggregate function named StddevSamp with
one expression as input.
No description provided by the author
The function NewSubquery returns a pointer to the
Subquery struct by assigning the input attributes
to the fields of the struct.
No description provided by the author
Constructor.
Constructor.
The function NewSum calls NewAggregateBase to
create an aggregate function named SUM with
one expression as input.
The function NewTransactionIsolation returns a pointer to the SET TRANSACTION ISOLATION
struct by assigning the input attributes to the fields of the struct
*/.
The function NewUnion returns a pointer to the
Union struct with the input argument used to set
the first and second fields in the subresult.
The function NewUnionAll returns a pointer to the
UnionAll struct with the input argument used to set
the first and second fields in the subresult.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The function NewUpsertSelect returns a pointer to the Upsert
struct by assigning the input attributes to the fields of the
struct, and setting values to nil.
The function NewUpsertValues returns a pointer to the Upsert
struct by assigning the input attributes to the fields of the
struct, and setting key, value and query to nil.
No description provided by the author
Create a key value pair using the operands of the input
expression Array construct and return.
Range over the operands of the input array construct
and create new key value pair's using the NewPair()
method and add it to Pairs.
For use with dynamic keyspaces, creates a full path from a full path string or a keyspace and a context.
The function NewVariance calls NewAggregateBase to
create an aggregate function named variance with
one expression as input.
The function NewVarPop calls NewAggregateBase to
create an aggregate function named var_pop with
one expression as input.
The function NewVarSamp calls NewAggregateBase to
create an aggregate function named VarSamp with
one expression as input.
New window frame
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
the path is expected to be syntactically correct - ie one produced with FullName.
the queryContext is expected to be syntactically correct as per function below no checks are made, and undesired behaviour will ensue if it isn't.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
for now the only formats we support are blank namespace: namespace:bucket namespace:bucket.scope [:]bucket [:]bucket.scope.
# Constants
Grouped Aggregate properties.
Grouped Aggregate properties.
No description provided by the author
No description provided by the author
Grouped Aggregate properties.
No description provided by the author
Grouped Aggregate properties.
Grouped Aggregate properties.
No description provided by the author
No description provided by the author
No description provided by the author
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Aggregate modifers/flags
*/.
Grouped Aggregate properties.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Grouped Aggregate properties.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
right-hand side of ANSI JOIN.
right-hand side of ANSI NEST.
right-hand side of comma-separated join.
inside a correlated subquery.
right-hand side of index join/nest.
join hint inferred (from other side of join).
No description provided by the author
lateral join.
join on primary key (meta().id).
join hint transferred (to other side of join).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
window frame constants.
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Aggregate registry
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents the ANSI JOIN clause.
Nesting is conceptually the inverse of unnesting.
This represents the Aggregate function ARRAY_AGG(expr).
This represents the Aggregate function AVG(expr).
No description provided by the author
Represents the Commit transaction statement.
This represents the Aggregate function COUNT(expr) and COUNT(*).
This represents the Aggregate function COUNTN(expr)
It returns the countn of all the non-NULL, non-MISSING numeric values in
the group.
No description provided by the author
Represents the Create collection ddl statement.
Represents the Create function ddl statement.
No description provided by the author
Represents the Create index ddl statement.
Represents the create primary index ddl statement.
Represents the Create scope ddl statement.
No description provided by the author
No description provided by the author
This represents the Window CUME_DIST() function.
No description provided by the author
Represents the delete DML statement.
This represents the Window DENSE_RANK() function.
No description provided by the author
Represents the Drop collection ddl statement.
Represents the Drop function ddl statement.
No description provided by the author
Represents the Drop index ddl statement.
Represents the Drop scope ddl statement.
No description provided by the author
No description provided by the author
Represents the Except set operation used to combine results
from multiple subselects.
Represents the Except All set operation used to combine results
from multiple subselects.
Represents the Execute command.
Represents the Execute function ddl statement.
Type Exists is a struct that inherits from expression.Exists to
set LIMIT 1 on subqueries.
Represents the explain text for a query.
Represents the EXPLAIN FUNCTION statement
This statement is used to explain query statements inside UDFs
*/.
No description provided by the author
This represents the Window FIRST_VALUE() function.
Represents the Flush collection ddl statement.
No description provided by the author
This represents the Group by clause.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Represents the JOIN clause.
Represents the index key term in create index.
Nesting is conceptually the inverse of unnesting.
Represents the Partition term in create index.
No description provided by the author
No description provided by the author
No description provided by the author
Represents the insert DML statement.
Represents the Intersect set operation used to combine results
from multiple subselects.
Represents the Intersect All set operation used to combine results
from multiple subselects.
Represents the JOIN clause.
Represents the keyspace_ref used in DML statements
*/.
Represents the Keyspace (bucket) term in the FROM clause.
This represents the Window LAG() function.
This represents the Window LAST_VALUE() function.
This represents the Window LEAD() function.
This represents the Aggregate function MAX(expr).
No description provided by the author
Represents the merge DML statement.
Represents the merge actions in a merge statement.
Represents the merge delete merge actions statement.
Represents the merge insert merge actions statement.
Represents the merge source.
Represents the merge update merge-actions statement.
This represents the Aggregate function MIN(expr).
The named parameter is specified using formal param names
in a query.
Nesting is conceptually the inverse of unnesting.
This represents the Window NTH_VALUE() function.
No description provided by the author
No description provided by the author
This represents the Order by clause.
Type Pair is a struct that contains key and value
expressions.
No description provided by the author
A keyspace path.
This represents the Window PERCENT_RANK() function.
A positional parameter uses a position of the parameter in
the query.
Represents a prepared statement.
Represents the select clause.
This represents the Window RANK() function.
This represents the Window RATIO_TO_REPORT() function.
This represents the result expression in a select clause.
No description provided by the author
Represents the rollback transaction statement.
This represents the Window ROW_NUMBER() function.
Represents the savepoint statement.
Represents the keyspace_ref used in DML statements
*/.
This represents the select statement.
SelectTerm wraps a Select and implements the Node interface.
Represents the SET clause in the UPDATE statement.
No description provided by the author
Represents the ordering term in an order by clause.
Represents the Start transaction statement.
This represents the Aggregate function Stddev(expr).
This represents the Aggregate function STDDEV_POP(expr).
This represents the Aggregate function stddev_samp(expr).
No description provided by the author
Represents a subquery statement.
No description provided by the author
No description provided by the author
SELECT statements can begin with either SELECT or FROM.
This represents the Aggregate function SUM(expr).
Represents the Set transaction isolation statement.
Represents the Union set operation used to combine results
from multiple subselects.
Represents the Union all set operation used to combine results
from multiple subselects.
If a document or object contains a nested array, UNNEST conceptually
performs a join of the nested array with its parent object.
No description provided by the author
Represents the UNSET clause in the UPDATE statement.
No description provided by the author
Represents the UPDATE statement.
Represents the FOR clause in UPDATE SET/UNSET.
Represents UPDATE STATISTICS statement
*/.
Represents the upsert DML statement.
No description provided by the author
This represents the Aggregate function Variance(expr).
This represents the Aggregate function VARIANCE_POP(expr).
This represents the Aggregate function var_samp(expr)/variance_samp(expr).
Window frame information
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
The Aggregate interface represents aggregate functions such as SUM(),
AVG(), COUNT, COUNT(DISTINCT), MIN(), and MAX().
No description provided by the author
Represents the from clause in a select statement.
No description provided by the author
The Node interface represents a node in the algebra tree (AST).
No description provided by the author
No description provided by the author
No description provided by the author
The Statement interface represents a N1QL statement, e.g.
The Subresult interface represents the intermediate result of a
select statement.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This represents the value pairs used in an insert
values clause in an insert or upsert statement.
Type ResultTerms represents multiple ResultTerm
(result expressions).
No description provided by the author
No description provided by the author
It represents multiple orderby terms.
No description provided by the author
No description provided by the author
No description provided by the author