Skip to content

Add an AST visitor #114

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
wants to merge 1 commit into from
Closed

Add an AST visitor #114

wants to merge 1 commit into from

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jun 11, 2019

Resubmission of #78, which caused some compilation failures due to merge skew when it landed. @andygrove are you game to try this again?

@benesch benesch requested a review from andygrove June 11, 2019 13:24
@benesch benesch mentioned this pull request Jun 11, 2019
@coveralls
Copy link

coveralls commented Jun 11, 2019

Pull Request Test Coverage Report for Build 387

  • 675 of 728 (92.72%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 92.322%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/ast/visit.rs 675 728 92.72%
Totals Coverage Status
Change from base Build 386: 0.08%
Covered Lines: 5002
Relevant Lines: 5418

💛 - Coveralls

@benesch benesch force-pushed the visitor branch 3 times, most recently from 73c0513 to c71e6e2 Compare June 25, 2019 18:16
@malobre
Copy link

malobre commented Apr 21, 2020

An AST visitor would be a nice thing to have.
@andygrove Could you consider merging this PR ?

@wseaton
Copy link

wseaton commented Mar 30, 2021

Bumping this, adding an AST visitor would make it much easier to use sqlparser-rs to extract particular metadata from queries like "what tables are referenced in this query".

@benesch I see you did some work on MaterializeInc/materialize#3288 in auto-generating the visitor, is this something that could potentially be upstreamed, maybe have walkabout run on pre-commit hook to force the vistior to be regenerated?

@benesch
Copy link
Contributor Author

benesch commented Apr 9, 2021 via email

@alamb
Copy link
Contributor

alamb commented Aug 20, 2021

Hi @benesch -- sorry for the delay in review. I am going to help out now with this repo and we are working to clear the backlog. Is this PR still something you would like to work on to help contribute?

@alamb
Copy link
Contributor

alamb commented Sep 27, 2021

Closing due to staleness -- feel free to reopen this PR or create a new one if you plan to keep working on this

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

Successfully merging this pull request may close these issues.

5 participants