package
0.0.0-20201027173521-df1ffc243217
Repository: https://github.com/tomarrell/lbadd.git
Documentation: pkg.go.dev
# Functions
ErrNoSuchColumn returns an error indicating that a requested column is not contained in the current result table.
ErrNoSuchFunction returns an error indicating that a function with the given name can not be found.
ErrUncomparable returns an error indicating that the given type does not implement the types.Comparator interface, and thus, values of that type cannot be compared.
ErrUnimplemented returns an error indicating a missing implementation for the requested feature.
EvtFullTableScan creates an event 'full table scan[table=<tableName>]'.
New creates a new engine object and applies the given options to it.
ToNumericValue checks whether the given string is of this form https://www.sqlite.org/lang_expr.html#literal_values_constants_ .
WithLogger specifies a logger for the Engine.
WithProfiler passes a profiler into the engine.
WithRandomProvider sets a random provider, which will be used by the engine to evaluate expressions, that require a random source, such as the function RANDOM().
WithTimeProvider sets a time provider, which will be used by the engine to evaluate expressions, that require a timestamp, such as the function NOW().
# Constants
ErrClosed indicates that the component can not be used anymore, because it already has been closed.
ErrUnsupported indicates that a requested feature is explicitely not supported.
EvtCompare is the event 'compare'.
EvtEvaluate is the event 'evaluate'.
# Variables
EmptyTable is the empty table, with 0 cols and 0 rows.
# Structs
Col is a header for a single column in a table, containing the qualified name of the col, a possible alias and the col data type.
Engine is the component that is used to evaluate commands.
ExecutionContext is a context that is passed down throughout a complete evaluation.
ParameterizedEvt is a parameterized event, which will be printed in the form Name[Param].
Row is a one-dimensional collection of values.
Table is a one-dimensional collection of Rows.