apache / apache/datafusion-sqlparser-rs

help wanted: extend cli example for batch processing

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

描述

it looks like the sqlparser-rs can do what I need
- code of views is stored in mssqlserver
- json parser result should be stored into mssqlserver
- I wan't to be able to do this outside the rust environment, some compilation into a windows program is required to use this program also without installing rust on other machines

if it is to complicated to read the sql source from mssqlserver and to store the json result into mssqlserver it would be also possible:
- I can export from mssqlserver into sql text files
- sql files could be used as input for the cli
- json output should be stored into text files with the same BaseFileName (abc.sql => abc.json), but maybe into another folder
- I can import these json files into mssqlserver

Maybe the example cli.rs could be extended to export the json into a file?
And maybe it could also be extended to parse a directory containing sql-files, and to use an optional parameter for the folder for generated json files?

I never before used Rust. I could try to learn the basics of rust to implement this. But maybe it is much more easy to do for developers experienced in rust then for me, which I am a database specialist, but not a rust developer?

贡献指南

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

调研方向

首先阅读示例 cli.rs,并明确范围是基于文件的批处理还是 MSSQL 集成。定义输入和输出行为,包括目录处理以及匹配的 .sql/.json 基础名称,然后验证所选工作流能否在未安装 Rust 的情况下作为 Windows 程序运行。

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

评估

技术栈
rust, sql
领域
cli, databases
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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