apache / apache/datafusion-sqlparser-rs

A separate crate for common types such DataType and Value

未關閉
#283 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
3.5k
分支
772
平均合併
4 天 9 小時
30 天內合併 PR
17

描述

A lot of times when using/implementing an ORM there is a lot of enum matching which DataType should be matching to essentially the same data type for the ORM implementation which ultimately maps to the underlying database DataType. There would be also conversion of Value to and fro ORM enum Value. If we can move these common types into a thin shared crate, it would remove a lot of conversion code. One example where is this applied is the `http` crate which is used in `hyper`,`actix`,and `reqwest`

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

該 issue 提到了 DataType 和 Value,但沒有指出檔案或測試。首先定位它們的定義以及 ORM/資料庫轉換路徑,然後定義共用 crate 的邊界;當共用型別可以在不重複轉換的情況下重複使用時,這項工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
databases
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。