Skip to content

CREATE INDEX? #152

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

Closed
budleigh opened this issue Mar 2, 2020 · 3 comments
Closed

CREATE INDEX? #152

budleigh opened this issue Mar 2, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@budleigh
Copy link

budleigh commented Mar 2, 2020

Not sure if I'm misusing things or misunderstood (it does look like index operations of any kind are not defined in the SQL specs I've peeked at), but is there a particular reason that it's currently not possible to parse a CREATE INDEX/DROP INDEX statement?

@nickolay
Copy link
Contributor

Sorry for the late answer!

Yes, CREATE INDEX is not part of ANSI SQL because like much of DDL it's very database-specific.

sqlparser doesn't support it simply because no-one implemented it. At this point we accept PRs that add support for syntax accepted by a popular RDBMS, so if anyone is willing to implement any part of it, it would be great.

@nickolay nickolay added the help wanted Extra attention is needed label Apr 21, 2020
@miuy56dc
Copy link
Contributor

miuy56dc commented May 18, 2020

Add CREATE INDEX and DROP INDEX support. https://github.com/andygrove/sqlparser-rs/pull/167

@nickolay
Copy link
Contributor

Thanks to @mashuai, PR #167 is now merged, and sqlparser supports CREATE/DROP INDEX (to the extent described in that pull request). I think I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants