package
0.0.0-20240914090759-22fe844ec72e
Repository: https://github.com/couchbase/query.git
Documentation: pkg.go.dev
# Functions
assign arrayId.
No description provided by the author
No description provided by the author
No description provided by the author
gather (and count) keyspace references for an expression.
Convert URL string to net/url object that is in a format supported by CURL().
* Deletes the field listed in parts in "ref" from the object "i"
*/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Given exprs and arrayKey collect (top level) original and replaced binding varaible ANY expressions.
No description provided by the author
This method is used to retrieve a function by the parser.
No description provided by the author
retrieve identifier expression for a keyspace.
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
check whether expr has references to any of the keyspaces.
If conflict or error or all same return false.
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
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
Function implementing greater than or equal to.
No description provided by the author
Function implementing greater than.
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
This method returns a pointer to the IndecContext
structure, after assigning its value now with the
current local time using the time package's Now
function.
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
This function implements the NOT EQUALS comparison operation.
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 function implements the NOT BETWEEN operation.
This function implements the NOT IN collection operation.
This function implements the NOT LIKE operation.
This function implements the NOT WITHIN collection operation.
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
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
Constrct TimeSeries Data and path expression where to look fields in the document.
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
Remove an sub-expression (subterm) from an AND expression.
No description provided by the author
No description provided by the author
No description provided by the author
Parse the input string using the defined formats for Date and return the time value it represents, and error.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
1 - cosine_sim.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Indicates if covering check is traversing down a subquery.
No description provided by the author
No description provided by the author
No description provided by the author
covering state can't be established yet, currently unused.
expression is covered, ignore the rest.
not covered.
expression not relevant for covering, skip to next.
covered.
No description provided by the author
Represents the default format of the time string.
negate of dot_product.
No description provided by the author
No description provided by the author
No description provided by the author
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
expression flags */.
No description provided by the author
Check correlation.
We are in function invocation.
formalizing index key or index condition.
Map keyspace to SELF: used in creating index.
Map SELF to keyspace: used in sarging index.
binding expr has correlated references.
expression term.
inline function variable.
GROUP AS alias.
keyspace or its alias or equivalent (e.g.
lateral correlation.
alias used in projection.
Mark recursive withs.
top level variable (CTE, function parameter...).
subquery term.
unknown.
UNNEST alias.
binding variable.
CTE variable (WITH alias).
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
Hash tables used in IN-list evaluation.
Hash tables used in IN-list evaluation.
Hash tables used in IN-list evaluation.
same as euclidean.
same as euclidean_squared.
Maximum range/repeat value.
# Variables
Mapping of Cipher String to Cipher Id.
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
Pre-define commonly used constant 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
# Structs
this represents programmatically cancelling a request
*/.
This represents the number function ABS(expr).
This represents the number function ACOS(expr).
Represents Add for arithmetic expressions.
No description provided by the author
Expression that implements array indexing in CREATE INDEX.
Logical terms allow for combining other expressions using boolean logic.
No description provided by the author
Represents range predicate ANY, that allow testing of a bool condition
over the elements of a collection or object.
Represents range predicate ANY AND EVERY, that allow testing of a bool
condition over the elements of a collection or object.
No description provided by the author
Represents range transform ARRAY, that allow you to map and filter the
elements of a collection or objects.
This represents the array function ARRAY_APPEND(expr, value ...).
This represents the array function ARRAY_AVG(expr).
No description provided by the author
This represents the array function ARRAY_CONCAT(expr1, expr2 ...).
Represents array construction.
This represents the array function ARRAY_CONTAINS(expr, value).
This represents the array function ARRAY_CONTAINS_ALL(expr, value).
This represents the array function ARRAY_CONTAINS_ANY(expr, value).
ArrayCount
This represents the array function ARRAY_COUNT(expr).
This represents the array function ARRAY_DISTINCT(expr).
ArrayExcept
This represents the array function ARRAY_EXCEPT(array A,array B).
This represents the array function ARRAY_FLATTEN(expr, depth).
This represents the array function ARRAY_IFNULL(expr).
This represents the array function ARRAY_INSERT(expr, pos, value ...).
This represents the array function ARRAY_INTERSECT(expr1, expr2 ...).
This represents the array function ARRAY_LENGTH(expr).
This represents the array function ARRAY_MAX(expr).
This represents the array function ARRAY_MIN(expr).
No description provided by the author
This represents the array function ARRAY_POSITION(expr, value).
This represents the array function ARRAY_PREPEND(value ..., expr).
This represents the array function ARRAY_PUT(expr, value ...).
This represents the array function ARRAY_RANGE(start, end [, step ]).
This represents the array function ARRAY_REMOVE(expr, value ...).
This represents the array function ARRAY_REPEAT(value, n).
This represents the array function ARRAY_REPLACE(expr, value1, value2
[, n ]).
No description provided by the author
This represents the array function ARRAY_REVERSE(expr).
This represents the array function ARRAY_SORT(expr).
This represents the array function ARRAY_STAR(expr).
This represents the array function ARRAY_SUM(expr).
ArraySwap
This represents the array function ARRAY_Swap(array,oldpos,newpos).
This represents the array function ARRAY_SYMDIFF1(expr1, expr2 ...).
This represents the array function ARRAY_SYMDIFFN(expr1, expr2 ...).
This represents the array function ARRAY_UNION(expr1, expr2 ...).
This represents the number function ASIN(expr).
This represents the number function ATAN(expr).
This represents the number function ATAN2(expr1, expr2).
This represents the function BASE64_DECODE(expr).
This represents the function BASE64_ENCODE(expr).
Comparison terms allow for comparing two expressions.
A Binary function has two input operands.
Binding is a helper class.
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 number function CEIL(expr).
Return the system clock at function evaluation time as a UNIX milliseconds (varies during a query).
Return the system clock at function evaluation time as a string (varies during a query).
Return the system clock in the specified TZ at function evaluation time as a string (varies during a query).
Return the system clock in UTC at function evaluation time as a string (varies during a query).
Represents binary functions that are commutative in
nature.
Represents functions that are commutative in
nature.
No description provided by the author
This represents the concatenation operation for strings.
This represents the concatenation operation for strings or array of strings with separator.
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 number function COS(expr).
Internal Expression to support covering indexing.
No description provided by the author
No description provided by the author
This represents the curl function CURL(method, url, options).
No description provided by the author
This represents the array function CURRENT_USERS().
Perform date arithmetic.
Perform date arithmetic.
Perform date arithmetic.
Perform date arithmetic and returns the absolute (always +ve) elapsed time between two date strings in a supported format, as an integer whose unit is part.
Perform date arithmetic.
Perform date arithmetic and returns the elapsed time between two date strings in a supported format, as an integer whose unit is part.
Return the input date in the expected format.
Return the date part as an integer.
Return the date part as an integer.
Return a range of dates from expr1 to expr2 in milliseconds.
Return a range of dates from expr1 to expr2.
Truncate a UNIX timestamp so that the given date part string is the least significant.
Truncate an ISO 8601 timestamp so that the given date part string is the least significant.
No description provided by the author
No description provided by the author
This represents the number function DEGREES(expr).
Represents Div for arithmetic expressions.
This represents the Meta function DS_VERSION().
Convert a duration in nanoseconds to a string.
This represents the number function E().
Nested expressions are used to access elements inside of arrays.
This represents the json function ENCODED_SIZE(expr).
No description provided by the author
Comparison terms allow for comparing two expressions.
No description provided by the author
No description provided by the author
Represents range predicate EVERY, that allow testing of a bool
condition over the elements of a collection or object.
Represents the Collection expression EXISTS.
This represents the number function EXP(expr).
ExpressionBase is a base class for all expressions.
No description provided by the author
No description provided by the author
Nested expressions are used to access fields inside of objects.
FieldName represents the Field.
No description provided by the author
Represents range transform FIRST, that allow you to map and filter the
elements of a collection or object.
No description provided by the author
This represents the number function FLOOR(expr).
No description provided by the author
Convert expressions to full form qualified by keyspace aliases.
Base class for functions.
This represents the comparison function GREATEST(expr1, expr2, ...).
No description provided by the author
An identifier is a symbolic reference to a particular value
in the current context.
No description provided by the author
Represents integer div for arithmetic expressions.
This represents the Conditional function IFINF(expr1, expr2, ...)
for numbers.
This represents the Conditional function IFMISSING(expr1, expr2, ...).
This represents the Conditional function IFMISSINGORNULL(expr1, expr2,
...).
This represents the Conditional function IFNAN(expr1, expr2, ...).
This represents the Conditional function IFNANORINF(expr1, expr2, ...).
This represents the Conditional function IFNULL(expr1, expr2, ...).
Represents IMod for arithmetic expressions.
Represents the collection expression IN.
Type IndexContext is a structure containing a variable
now that is of type Time which represents an instant in
time.
No description provided by the author
Inliner is a mapper that inlines bindings, e.g.
No description provided by the author
This represents the type checking function ISARRAY(expr).
This represents the type checking function ISATOM(expr).
This represents the type checking function ISBINARY(expr).
This represents the type checking function ISBOOLEAN(expr).
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 type checking function ISNUMBER(expr).
This represents the type checking function ISOBJECT(expr).
This represents the Type checking function ISSTRING(expr).
No description provided by the author
No description provided by the author
This represents the json function JSON_DECODE(expr).
This represents the json function JSON_ENCODE(expr).
No description provided by the author
This represents the LESS THAN OR EQUAL TO comparison
operation.
This represents the comparison function LEAST(expr1, expr2, ...).
No description provided by the author
No description provided by the author
Comparison terms allow for comparing two expressions.
This represents the pattern matching function LIKE_PREFIX(expr).
This is cached in the context for each operator instance.
This represents the pattern-matching function LIKE_STOP(expr).
This represents the pattern matching function LIKE_SUFFIX(expr).
This represents the number function LN(expr).
This represents the number function LOG(expr).
No description provided by the author
No description provided by the author
This represents the LESS THAN comparison
operation.
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
This represents the Meta function META(expr).
Convert a millisecond timestamp to a date string in a supported format.
Convert the UNIX timestamp to a UTC string in a supported format.
Convert the UNIX timestamp to a string in the named time zone.
This represents the function MIN_VERSION().
This represents the Conditional function MISSINGIF(expr1, expr2).
Represents Mod for arithmetic expressions.
Represents multiplication for arithmetic expressions.
This represents the number function NaN().
This represents the Conditional function NANIF(expr1, expr2).
Represents negation for arithmetic expressions.
This represents the number function NEGINF().
This represents the Conditional function NEGINFIF(expr1, expr2).
This represents the distributed function node_name().
No description provided by the author
No description provided by the author
Logical terms allow for combining other expressions using boolean logic.
Return a statement timestamp as UNIX milliseconds and does not vary during a query.
Return a statement timestamp as a string in a supported format and does not vary during a query.
Return a statement timestamp as a string in a supported format for input timezone and does not vary during a query.
Return a statement timestamp as a string in a supported format and does not vary during a query.
A Nullary function doesnt have any input operands.
This represents the Conditional function NULLIF(expr1, expr2).
No description provided by the author
No description provided by the author
Represents range transform OBJECT, that allow you to map and filter
the elements of a collection or object.
This represents the object function OBJECT_ADD(expr, expr, expr).
This represents the object function OBJECT_CONCAT(expr1, expr2 ...).
No description provided by the author
Represents object construction.
This represents the object function OBJECT_EXTRACT(expr...).
No description provided by the author
No description provided by the author
This represents the object function OBJECT_INNERPAIRS(expr).
This represents the object function OBJECT_INNERVALUES(expr).
This represents the object function OBJECT_LENGTH(expr).
This represents the object function OBJECT_NAMES(expr).
This represents the object function OBJECT_PAIRS(expr).
This represents the object function OBJECT_PAIRS(expr).
No description provided by the author
This represents the object function OBJECT_PUT(expr, expr, expr).
This represents the object function OBJECT_REMOVE(expr, name ...).
No description provided by the author
This represents the function OBJECT_RENAME(obj, old_name, new_name).
This represents the function OBJECT_REPLACE(obj, old_val,
new_val).
No description provided by the author
No description provided by the author
This represents the object function OBJECT_UNWRAP(expr).
This represents the object function OBJECT_VALUES(expr).
Logical terms allow for combining other expressions using boolean logic.
Dynamic index for data platforms.
No description provided by the author
This represents the number function PI().
This represents the json function POLY_LENGTH(expr).
This represents the number function POSINF().
This represents the Conditional function POSINFIF(expr1, expr2).
No description provided by the author
No description provided by the author
This represents the number function POWER(expr1, expr2).
This represents the number function RADIANS(expr).
This represents the function RANDOM(), with an optional seed.
No description provided by the author
No description provided by the author
No description provided by the author
This represents the String function REGEXP_CONTAINS(expr, pattern).
This represents the String function REGEXP_LIKE(expr, pattern).
This represents the String function REGEXP_MATCHES(expr, pattern).
This represents the String function REGEXP_POSITION(expr, pattern)
It returns the 0 based - first position of the regular expression pattern
within the string, or -1.
This represents the String function REGEXP_POSITION1(expr, pattern)
It returns the 1 based - first position of the regular expression pattern
within the string, or -1.
This represents the pattern matching function LIKE_PREFIX(expr).
This represents the String function
REGEXP_REPLACE(expr, pattern, repl [, n ]).
This represents the String function REGEXP_SPLIT(expr, pattern).
This represents the pattern-matching function LIKE_STOP(expr).
This represents the pattern matching function REGEXP_SUFFIX(expr).
Renamer is used to rename binding variables, but is a generic
expression renamer.
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 number function ROUND(expr [, digits ]).
Same as Round() but rounds to nearest value not to just even value.
No description provided by the author
No description provided by the author
Searched case expressions allow for conditional logic within
an expression.
This represents the Meta function SELF().
No description provided by the author
This represents the number function SIGN(expr).
Simple case expressions allow for conditional matching within an expression.
This represents the number function SIN(expr).
Nested expressions are used to access slices inside of arrays.
No description provided by the author
This represents the number function SQRT(expr).
No description provided by the author
No description provided by the author
Convert a string representation of a duration to a nanosecond duration value.
Convert a date string in a supported format to UNIX milliseconds.
Convert the input expression in the given format to UTC.
Convert the supported timestamp string to the named time zone.
Represents subtraction for arithmetic expressions.
SubqueryLister is a Visitor for enumerating subqueries within an
expression tree.
No description provided by the author
No description provided by the author
This Expression is primarily for internal use.
No description provided by the author
This represents the number function TAN(expr).
A Ternary function has three input operands.
No description provided by the author
Store all relavent info about timeseries data.
No description provided by the author
No description provided by the author
This represents the type conversion function TO_ARRAY(expr).
This represents the type conversion function TO_ATOM(expr).
This represents the type conversion function TO_BOOL(expr).
MB-20850.
This represents the type conversion function TO_NUM(expr).
This represents the type conversion function TOOBJ(expr).
This represents the type conversion function TOSTR(expr).
No description provided by the author
No description provided by the author
This represents the number function TRUNC(expr [, digits ]).
This represents the type checking function TYPE(expr).
A Unary function has one input operand.
No description provided by the author
UNNEST_POSITION(expr)
*/.
No description provided by the author
No description provided by the author
No description provided by the author
This represents the execution of UDFs
*/.
No description provided by the author
This represents the Meta function UUID().
This represents the Meta function VERSION().
Return the English name of the weekday as a string.
Return the English name of the weekday as a string.
Type WhenTerm is a struct that has two fields representing the When and
then expressions for a case statement.
Represents the collection expression WITHIN.
No description provided by the author
# Interfaces
A binary function is one that has two operands.
Base for ANY, EVERY, and ANY AND EVERY collection predicates.
It imports the time package that provides the functionality
to measure and display the time.
No description provided by the author
No description provided by the author
The Expression interface represents N1QL expressions.
Type Function is an interface that inherits from Expression.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Mapper is a Visitor that returns an Expression.
Type NamedParameter is an interface that inherits from
Expression, and has a method Name() that returns a
string.
No description provided by the author
No description provided by the author
Created to avoid import cycles between plan and expression package.
Path is of type interface that inherits Expression.
Type PositionalParameter is an interface that inherits
from Expression, and has a method position that returns
an integer representing the position of the parameter
in the query.
No description provided by the author
No description provided by the author
Used to implement subqueries.
A Traverser is a Visitor that traverses an Expression and its
descendants.
A unary function is one that has on operand.
The type of Visitor is an interface with a list of methods that are
implemented in Stringer.go.
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
The type Expressions is defined as a slice of Expression.
Factory method pattern.
No description provided by the author
Expression path.
No description provided by the author
No description provided by the author
Represents a slice of when terms
*/.
No description provided by the author