apache / apache/datafusion-sqlparser-rs
A separate crate for common types such DataType and Value
未关闭
- 主要语言
- 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