Versions in this module Expand all Collapse all v0 v0.4.0 Aug 2, 2025 v0.3.1 Aug 1, 2025 Changes in this version + const OffsetOnlyLimit + type Executor struct + func NewExecutor(mem memory.Allocator) *Executor + type Function struct + Args []expr.Expr + Name string + func (f *Function) String() string + type Query struct + func (q *Query) Execute() (*dataframe.DataFrame, error) + func (q *Query) String() string + type Statement interface + StatementType func() StatementType + String func() string + type StatementType int v0.3.0 Jul 27, 2025 Changes in this version + const AbsFunction + const AscOrder + const AvgFunction + const CALL + const CeilFunction + const CountFunction + const DateAddFunction + const DateDiffFunction + const DateSubFunction + const DescOrder + const EQUALS + const ExtractFunction + const FloorFunction + const LESSGREATER + const LOGICAL + const LOWEST + const LengthFunction + const LowerFunction + const MaxFunction + const MinFunction + const NowFunction + const PREFIX + const PRODUCT + const RoundFunction + const SUMPREC + const SubstrFunction + const SumFunction + const TrimFunction + const UpperFunction + type FromClause struct + Alias string + Joins []JoinClause + TableName string + func (f *FromClause) String() string + type GroupByClause struct + Columns []expr.Expr + func (g *GroupByClause) String() string + type HavingClause struct + Condition expr.Expr + func (h *HavingClause) String() string + type JoinClause struct + Alias string + OnClause expr.Expr + TableName string + Type JoinType + func (j *JoinClause) String() string + type JoinType int + const FullJoinType + const InnerJoinType + const LeftJoinType + const RightJoinType + func (jt JoinType) String() string + type Lexer struct + func NewLexer(input string) *Lexer + func (l *Lexer) NextToken() Token + type LimitClause struct + Count int64 + Offset int64 + func (l *LimitClause) String() string + type OrderByClause struct + OrderItems []OrderByItem + func (o *OrderByClause) String() string + type OrderByItem struct + Direction OrderDirection + Expression expr.Expr + func (o *OrderByItem) String() string + type OrderDirection int + const AscendingOrder + const DescendingOrder + func (od OrderDirection) String() string + type Parser struct + func NewParser(lexer *Lexer) *Parser + func (p *Parser) Errors() []string + func (p *Parser) ParseSQL() SQLStatement + type SQLExecutor struct + func NewSQLExecutor(mem memory.Allocator) *SQLExecutor + func (e *SQLExecutor) BatchExecute(queries []string) ([]*dataframe.DataFrame, error) + func (e *SQLExecutor) ClearTables() + func (e *SQLExecutor) Execute(query string) (*dataframe.DataFrame, error) + func (e *SQLExecutor) Explain(query string) (string, error) + func (e *SQLExecutor) GetRegisteredTables() []string + func (e *SQLExecutor) PrepareQuery(query string) (*SQLQuery, error) + func (e *SQLExecutor) RegisterTable(name string, df *dataframe.DataFrame) + func (e *SQLExecutor) ValidateQuery(query string) error + type SQLFunction struct + Args []expr.Expr + Name string + func (f *SQLFunction) String() string + type SQLQuery struct + func (q *SQLQuery) Execute() (*dataframe.DataFrame, error) + func (q *SQLQuery) String() string + type SQLStatement interface + StatementType func() SQLStatementType + String func() string + func ParseSQL(input string) (SQLStatement, error) + type SQLStatementType int + const DeleteStatementType + const InsertStatementType + const SelectStatementType + const UpdateStatementType + type SQLTranslator struct + func NewSQLTranslator(mem memory.Allocator) *SQLTranslator + func (t *SQLTranslator) ClearTables() + func (t *SQLTranslator) GetRegisteredTables() []string + func (t *SQLTranslator) RegisterTable(name string, df *dataframe.DataFrame) + func (t *SQLTranslator) TranslateFunctionCall(fn *SQLFunction) (expr.Expr, error) + func (t *SQLTranslator) TranslateStatement(stmt SQLStatement) (*dataframe.LazyFrame, error) + func (t *SQLTranslator) ValidateSQLSyntax(stmt SQLStatement) error + type SelectItem struct + Alias string + Expression expr.Expr + IsWildcard bool + func (s *SelectItem) String() string + type SelectStatement struct + FromClause *FromClause + GroupByClause *GroupByClause + HavingClause *HavingClause + LimitClause *LimitClause + OrderByClause *OrderByClause + SelectList []SelectItem + WhereClause *WhereClause + func (s *SelectStatement) StatementType() SQLStatementType + func (s *SelectStatement) String() string + type Token struct + Literal string + Position int + Type TokenType + type TokenType int + const AND + const AS + const AVG + const BY + const COMMA + const COUNT + const DISTINCT + const DIV + const DOT + const EOF + const EQ + const EXISTS + const FALSE + const FLOAT + const FROM + const FULL + const GE + const GROUP + const GT + const HAVING + const IDENT + const ILLEGAL + const IN + const INNER + const INT + const JOIN + const LE + const LEFT + const LIMIT + const LPAREN + const LT + const MAX + const MIN + const MINUS + const MOD + const MULT + const NE + const NOT + const NULL + const OFFSET + const ON + const OR + const ORDER + const PLUS + const RIGHT + const RPAREN + const SELECT + const SEMICOLON + const STRING + const SUM + const TRUE + const WHERE + type WhereClause struct + Condition expr.Expr + func (w *WhereClause) String() string