Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《手写 SQL 编译器 - 智能提示》 #118

Closed
ascoders opened this issue Dec 20, 2018 · 6 comments
Closed

精读《手写 SQL 编译器 - 智能提示》 #118

ascoders opened this issue Dec 20, 2018 · 6 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Dec 20, 2018

总结了以前 SQL 编译器文章,详细介绍如何做智能提示。


精读《手写 SQL 编译器 - 智能提示》

@atian25
Copy link

atian25 commented Dec 24, 2018

issue 里面建议加下 URL 指向文章

@wzhudev
Copy link

wzhudev commented May 9, 2019

读完了这个系列的文章,学到很多~

@navisoftware
Copy link

请问 @alife/monaco-sql-plugin 这个插件在哪里可以下载?

@ascoders
Copy link
Owner Author

@navisoftware 那个是内部的,开源的是 https://github.com/ascoders/syntax-parser

@navisoftware
Copy link

navisoftware commented Jul 31, 2020

我使用 https://github.com/ascoders/syntax-parser/blob/master/src/demo/sql-parser/mysql/parser.ts 来编写自己的mysql代码提示。
更新语句:
const updateStatement = () => {
return chain('update', tableSource)();
};
如何编写 update tablename set field=value,field2=value where id=value 这种匹配规则呢?field 根据tablename自动提示。
我已经实现了select * from tablename where field=value这种规则。

另外如果我要匹配类似where id=:param 需要如何写匹配规则呢?

@DuShuYuan
Copy link

syntax-parser demo里只有select能提示表名字段名,其他语句都提示不了啊

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants