apache / apache/datafusion-sqlparser-rs
ast: provider builders for convenient programmatic construction
- 主要语言
- Rust
- 星标
- 3.5k
- 派生
- 772
- 平均合并
- 4 天 9 小时
- 30 天内合并 PR
- 17
描述
I have a use case where I'm generating SQL strings, and in general having `sqlparser::ast` is quite good, but the structs are particularly painful to construct programatically. It'd be interesting if the ast structs offered an optional feature that had https://github.com/elastio/bon builders derived to build them.
Maybe somebody will teach me how to safely construct strings that I can then parse (that'd be fine! I just am not generally eager to be doing string formatting to produce sql, particularly given I don't have full control over the identifiers). For now I am generally just doing this formatting, but I don't love it.
贡献指南
这个仓库没有索引到贡献指南
调研方向
该 issue 将 sqlparser::ast 和一个由 bon 派生的可选 builder feature 列为入口;检查当前 AST 结构体和可选 feature 的定义方式。完成后应为相关 AST 结构体确定一种达成共识且可用的 builder 方案,从而减少手动格式化 SQL 字符串的需要。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust, sql
- 领域
- backend-api-design, databases
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100