Documentation
¶
Overview ¶
Package sqlite provides a SQLite dialect parser using rqlite/sql.
Package sqlite implements the parser.Parser interface for SQLite DDL using rqlite/sql (pure Go, no CGO).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseViewSQL ¶
ParseViewSQL parses a CREATE VIEW statement using rqlite/sql and extracts the view name, SELECT column metadata, and FROM clause table aliases.
func QualifyFilterIdentifiers ¶
QualifyFilterIdentifiers rewrites every bare column reference inside expr to be qualified with alias. Already-qualified refs (table.column) are left untouched. The expression is parsed via rqlite/sql and re-emitted via the AST node's String() method, so quoted identifiers, SQLite operators (GLOB, REGEXP, ->, ->>), and string-literal contents are all handled by the upstream parser.
It performs the codegen-time qualification of sub-categorized o2o `filter:` predicates.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser implements the parser.Parser interface for SQLite DDL. It uses rqlite/sql (pure Go) to parse SQLite SQL statements.
func (*Parser) Parse ¶
Parse parses SQLite DDL from sql. It can be called multiple times with different files; results accumulate.