Documentation
¶
Overview ¶
Package preprocess is a SQL query preprocessor. It extracts a mapping of table references, converting illegal table names to legal SQL in the process.
As an example the statemnent: SELECT * FROM illegal_sql/name
will be converted to: SELECT * FROM illegal_sql_name as ds and return a map keying "illegal_name": "illegal/name"
preprocess exists to cover the ways in which Qri deviates from the SQL spec, while reducing the burdern of maintaining a complete parser. This process intentionally avoids creating any AST. Think if it as glorified regex
Index ¶
Constants ¶
View Source
const ( // IllegalTok is the default for unrecognized tokens IllegalTok tokenType = iota )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.