package
0.15.0
Repository: https://github.com/go-faster/oteldb.git
Documentation: pkg.go.dev

# Functions

And returns new `AND` operation.
Array returns `array(<args>...)` function call expression.
ArrayConcat returns `arrayConcat(<args>...)` function call expression.
ArrayJoin returns `arrayJoin(<args>...)` function call expression.
Bool returns bool literal.
Cast returns `CAST(<x>, <typ>)` function call expression.
Coalesce returns `coalesce(<args>...)` function call expression.
CollectTokens iterates over tokens in given string.
Column returns new Result.
ColumnEq returns new `=` operation on column and literal.
Contains returns boolean expression to filter strings containing needle.
Eq returns new `=` operation.
Float returns float literal.
Function reutrns function call expression.
GetPrinter creates a new [Printer].
Gt returns new `>` operation.
Gte returns new `>=` operation.
Has returns `has(<arr>, <elem>)` function call expression.
HasToken returns `hasToken(<haystack>, <token>)` function call expression.
Hex returns `hex(<arg>)` function call expression.
Ident returns identifier.
In returns new `IN` operation.
Integer returns integer literal.
InTimeRange returns boolean expression to filter by [start:end].
IsSingleToken whether if given string is a single token.
JoinAnd joins given expressions using AND op.
JoinOr joins given expressions using OR op.
JSONExtract returns `JSONExtract(<from>, <typ>)` function call expression.
JSONExtractField returns `JSONExtract(<from>, <field>, <typ>)` function call expression.
JSONExtractKeys returns `JSONExtractKeys(<from>)` function call expression.
JSONExtractString returns `JSONExtractString(<from>, <field>)` function call expression.
Length returns `length(<arg>)` function call expression.
Like returns `like(<haystack>, <pattern>)` function call expression.
Lt returns new `<` operation.
Lte returns new `<=` operation.
Map returns `map(<args>...)` function call expression.
MapConcat returns `mapConcat(<args>...)` function call expression.
Match returns `match(<haystack>, <pattern>)` function call expression.
Minus returns new `-` operation.
Not returns new `NOT` operation.
NotEq returns new `!=` operation.
Or returns new `OR` operation.
Position returns `position(<haystack>, <needle>)` function call expression.
PositionUTF8 returns `positionUTF8(<haystack>, <needle>)` function call expression.
PutPrinter returns [Printer] to pool.
Select creates a new [SelectQuery].
SelectFrom creates a new [SelectQuery] from subquery.
SimpleJSONHas returns `simpleJSONHas(<json>, <field>)` function call expression.
String returns string literal.
SubQuery returns sub-query as an expression.
ToFloat64 returns `toFloat64(<arg>)` function call expression.
ToString returns `toString(<arg>)` function call expression.
ToUnixTimestamp64Nano returns `toUnixTimestamp64Nano(<arg>)` function call expression.
Tuple returns tuple of given expressions.
TupleValues returns tuple of given values.
Unhex returns `unhex(<arg>)` function call expression.
UnixNano returns time.Time as unix nano timestamp.
Value returns literal.

# Constants

No description provided by the author
No description provided by the author

# Structs

Expr is a Clickhouse expression.
Printer prints SQL query.
ResultColumn defines a column result.
SelectQuery is a SELECT query builder.

# Interfaces

Query is an query interface.

# Type aliases

OnResult defines [ch.Query.OnResult] callback type.
Order defines sorting order.