apache / apache/datafusion-sqlparser-rs

Implement SQL writer

未关闭
#18 10 条评论 9 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
3.5k
派生
772
平均合并
4 天 9 小时
30 天内合并 PR
17

描述

It is often useful to be able to generate SQL from the AST. This opens up possibilities for SQL manipulation or translation. The write should recursively walk the AST and write SQL to a writer / output stream.

A secondary benefit of having a writer is that it often simplifies writing unit tests for the parser, since a SQL statement can be parsed and re-written and then the output can be compared with the input (ignoring whitespace differences)

贡献指南

这个仓库没有索引到贡献指南

调研方向

未指定文件路径或测试路径。首先定位 AST 定义和 parser 入口点,然后检查现有的 parser 单元测试。完成的标准是:通过 writer 或输出流将解析后的 AST 递归写成 SQL,并编写 round-trip 测试,在忽略空白差异的情况下比较解析后的语句和重写后的语句。

由索引模型根据 Issue 内容生成。

评估

技术栈
rust, sql
领域
compilers, databases
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。