Crate prql_compiler

Source

Modules§

ast
debug
Debugging and unstable API functions
ir
Intermediate Representations of Abstract Syntax Tree
json
JSON serialization and deserialization functions
parser
semantic
Semantic resolver (name resolution, type checking and lowering to RQ)
sql
Backend for translating RQ into SQL

Structs§

Error
A prqlc error. Used internally, exposed as prqlc::ErrorMessage.
ErrorMessage
ErrorMessages
Errors
Multiple prqlc errors. Used internally, exposed as prqlc::ErrorMessages.
Options
Compilation options for SQL backend of the compiler.
SourceLocation
Location within the source file. Tuples contain:
SourceTree
All paths are relative to the project root.
Span

Enums§

DisplayOptions
MessageKind
Compile message kind. Currently only Error is implemented.
Reason
Target

Statics§

COMPILER_VERSION

Traits§

WithErrorInfo

Functions§

compile
Compile a PRQL string into a SQL string.
pl_to_prql
Generate PRQL code from PL AST
pl_to_rq
Perform semantic analysis and convert PL to RQ.
pl_to_rq_tree
Perform semantic analysis and convert PL to RQ.
prql_to_pl
Parse PRQL into a PL AST
prql_to_pl_tree
Parse PRQL into a PL AST
prql_to_tokens
Lex PRQL source into tokens.
rq_to_sql
Generate SQL from RQ.

Type Aliases§

Result