Crate datafusion_sql

Crate datafusion_sql 

Source
Expand description

This crate provides:

  1. A SQL parser, DFParser, that translates SQL query text into an abstract syntax tree (AST), Statement.

  2. A SQL query planner SqlToRel that creates LogicalPlans from Statements.

  3. A SQL unparser that converts Exprs and LogicalPlans into SQL query text.

Re-exportsΒ§

pub use sqlparser;

ModulesΒ§

cte πŸ”’
expr πŸ”’
parser
DFParser: DataFusion SQL Parser based on [sqlparser]
planner
SqlToRel: SQL Query Planner (produces LogicalPlan from SQL AST)
query πŸ”’
relation πŸ”’
resolve
select πŸ”’
set_expr πŸ”’
stack πŸ”’
statement πŸ”’
unparser
Unparser for converting Expr to SQL text
utils
SQL Utility Functions
values πŸ”’

StructsΒ§

ResolvedTableReference
A fully resolved path to a table of the form β€œcatalog.schema.table”

EnumsΒ§

TableReference
A multi part identifier (path) to a table that may require further resolution (e.g. foo.bar).