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.
- Error
Message - Error
Messages - Errors
- Multiple prqlc errors. Used internally, exposed as prqlc::ErrorMessages.
- Options
- Compilation options for SQL backend of the compiler.
- Source
Location - Location within the source file. Tuples contain:
- Source
Tree - All paths are relative to the project root.
- Span
Enums§
- Display
Options - Message
Kind - Compile message kind. Currently only Error is implemented.
- Reason
- Target
Statics§
Traits§
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.