package
1.0.2
Repository: https://github.com/phpcoder88/csv-searcher.git
Documentation: pkg.go.dev

# Functions

Calc calculates binary statement.
GetPriority returns priority of the binary operator.
IsOperator returns true if operator is one of the logical operators.
IsSameOperator returns true if strOp and op describes the same operator and false otherwise.
NewInfixNotation return new infix notation instance.
NewQuery returns the query.
NewWhereParser returns new where statement parser.

# Constants

AndKeyword returns AND keyword.
AndOperator describes AND logical operator.
BinaryOpToken returns the operation token.
CloseBracketToken returns the closing parenthesis token.
ConditionPrefix contains string condition prefix which is using in ConditionMap.
CondToken returns the condition token.
EqualOperator describes equal operator.
FromKeyword returns FROM keyword.
GreaterOperator describes greater operator.
GreaterOrEqualOperator describes greater or equal operator.
LessOperator describes less operator.
LessOrEqualOperator describes less or equal operator.
NotEqualOperator describes "not equal" operator.
OpenBracketToken returns the opening parenthesis token.
OrKeyword returns OR keyword.
OrOperator describes OR logical operator.
SelectKeyword returns SELECT keyword.
TypeNumber return condition number value type.
TypeString return condition string value type.
WhereKeyword returns WHERE keyword.

# Variables

ComparisonOperators contains list of possible comparison operators.
ErrCastInterfaceToFloat64 error if script can't cast interface to float64.
ErrCastInterfaceToString error if script can't cast interface to string.
ErrConvertToFloat64 error if script can't convert float64.
ErrIncorrectBracketPosition return error if query string has incorrect bracket positions in where statement.
ErrIncorrectQuery return error if query string is incorrect.
ErrPopEmptyStack returns error if a token stack is empty.
ErrTooManyStarColumns returns error if query string has more than one star in select statement.
ErrUnknownComparisonOperator describes unknown comparison operator error.
ErrUnknownValueType describes unknown value type of condition value error.

# Structs

Condition describes one condition in where statement.
InfixNotation describes list of tokens in infix notation.
A Query describes a query string.
WhereParser contains where statement parser data.
WhereTokenStack contains a stack of tokens.

# Type aliases

Column describes table column.
Columns describes list of table columns.
ComparisonOperator describes comparison operator type.
ConditionMap contains mapping strings conds to Condition structs.
LogicalOperator describes logical operator type.
QueryColumns describes list of unique table columns.
Table describes table.
Tables describes list of tables.
ValueType describes value type of condition value.
WhereToken describes token type.