apache / apache/datafusion-sqlparser-rs

[question] Is it possible to parse incomplete SQL?

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

描述

I'm working on building a web-based SQL editor and we would like to implement an intelligent autocomplete. To that end, we would like to know if the cursor position in the string corresponds to a Table/Column/Keyword/Function in the SQL statement. Unfortunately, the user might still be writing the query and it will not be well-formed yet in the majority of the cases.

I'm wondering if this project might be able to handle a scenario like that?
Any suggestions and feedback are greatly appreciated. Thanks!

贡献指南

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

调研方向

该 issue 未指定任何文件、测试或入口点;首先检查 Rust SQL parser 当前是否接受不完整的语句,并为表、列、关键字或函数提供光标上下文。要视为完成,需要确定范围,并记录所请求的面向 autocomplete 的解析支持行为或为其编写测试。

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

评估

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

把新 issue 发到你的邮箱

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