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

allow to supply custom isSqlQuery helper or use better library #4

Open
dwelle opened this issue Sep 1, 2018 · 3 comments
Open

allow to supply custom isSqlQuery helper or use better library #4

dwelle opened this issue Sep 1, 2018 · 3 comments

Comments

@dwelle
Copy link

dwelle commented Sep 1, 2018

Toying with the plugin, I'm coming across valid SQL queries that aren't recognized, such as:

SELECT * FROM article a WHERE NOT a.archived

-- or

SELECT * FROM article a WHERE (a.authz & 8)::bool

One solution would be to either allow users to supply their own SQL parser (though I haven't checked if eslint allows to pass functions as settings values in .eslintrc.js), or replace the sql-parse, which seems unmaintained, with something else.

@karlhorky
Copy link

Maybe sql-surveyor would be an alternative for a parser?

@gajus
Copy link
Owner

gajus commented Nov 17, 2022

Maybe sql-surveyor would be an alternative for a parser?

Seems to be not maintained anymore.

@npdev453
Copy link
Contributor

npdev453 commented Jul 28, 2023

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

No branches or pull requests

4 participants