apache / apache/datafusion-sqlparser-rs

ast: provider builders for convenient programmatic construction

オープン
#1,642 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
3.5k
フォーク
772
平均マージ
4日 9時間
マージ済み PR(30日)
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
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。