package
0.0.0-20221121043126-298dde518304
Repository: https://github.com/nitrictech/minio.git
Documentation: pkg.go.dev
# Functions
FormatSQLTimestamp - returns the a string representation of the timestamp as used in S3 Select.
FromArray creates a Value from an array of values.
FromBool creates a Value from a bool.
FromBytes creates a Value from a []byte.
FromFloat creates a Value from a number.
FromInt creates a Value from an int.
FromMissing creates a Value with Missing value.
FromNull creates a Value with Null value.
FromString creates a Value from a string.
FromTimestamp creates a Value from a timestamp.
IterToValue converts a simdjson Iter to its underlying value.
ParseSelectStatement - parses a select query from the given string and analyzes it.
# Constants
SelectFmtCSV - CSV format.
SelectFmtJSON - JSON format.
SelectFmtParquet - Parquet format.
SelectFmtSIMDJSON - SIMD JSON format.
SelectFmtUnknown - unknown format (default value).
# Variables
SQLParser is used to parse SQL statements.
# Structs
AliasedExpression is an expression that can be optionally named.
AndCondition represents logical conjunction of clauses.
Between represents the RHS of a BETWEEN expression.
CastFunc represents CAST sql function.
Compare represents the RHS of a comparison expression.
Condition represents a negation or a condition operand.
ConditionOperand is a operand followed by an an optional operation expression.
ConditionRHS represents the right-hand-side of Compare, Between, In or Like expressions.
CountFunc represents the COUNT sql function.
DateAddFunc represents the DATE_ADD function.
DateDiffFunc represents the DATE_DIFF function.
Expression represents a logical disjunction of clauses.
ExtractFunc represents EXTRACT sql function.
FuncExpr represents a function call.
Identifier represents a parsed identifier.
In represents the RHS of an IN expression.
JSONPath represents a keypath.
JSONPathElement represents a keypath component.
Like represents the RHS of a LIKE expression.
ListExpr represents a literal list with elements as expressions.
LitValue represents a literal value parsed from the sql.
Missing is used to indicate a non-existing value.
MultOp represents a single term followed by an optional sequence of terms separated by *, / or % operators.
NegatedTerm has a leading minus sign.
ObjectKey is a type for parsed strings occurring in key paths.
An Operand is a single term followed by an optional sequence of terms separated by +/-.
OpFactor represents the right-side of a +/- operation.
OpUnaryTerm represents the right side of *, / or % binary operations.
PrimaryTerm represents a Value, Path expression, a Sub-expression or a function call.
Select is the top level AST node type.
SelectExpression represents the items requested in the select statement.
SelectStatement is the top level parsed and analyzed structure.
SimpleArgFunc represents functions with simple expression arguments.
SubstringFunc represents SUBSTRING sql function.
TableExpression represents the FROM clause.
TrimFunc represents TRIM sql function.
UnaryTerm represents a single negated term or a primary term.
Value represents a value of restricted type reduced from an expression represented by an ASTNode.
WriteCSVOpts - encapsulates options for Select CSV output.
# Interfaces
Record - is a type containing columns and their values.
# Type aliases
Boolean is a type for a parsed Boolean literal.
FuncName - SQL function name.
LiteralList is a type for parsed SQL lists literals.
LiteralString is a type for parsed SQL string literals.
QuotedIdentifier is a type for parsed strings that are double quoted.
SelectObjectFormat specifies the format of the underlying data.