Code Monkey home page Code Monkey logo

Comments (8)

mebelousov avatar mebelousov commented on July 3, 2024

Hi, @KvanTTT !
Please check test_coverage.html. There are a lof of statements that parser cannot recognize.
As I found each parser for different SQL dialect in grammars-v4 has own way.
Also I think that it is easier to maintain the standalone repository.

from antlr_psql.

tshprecher avatar tshprecher commented on July 3, 2024

I agree eventually this can be in the official antlr/grammars-v4 directory, but I'm not sure it's stable enough yet. For example, I have an unmerged branch tackling some ALTER statements, and from time to time I add to it and will eventually merge with master.

When it gets to a stable state, I'll be fine with moving it to antlr/grammars-v4.

from antlr_psql.

KvanTTT avatar KvanTTT commented on July 3, 2024

Please check test_coverage.html. There are a lof of statements that parser cannot recognize.

This is not a big deal. A lot of grammars in the repository have a lack of support for some syntax.

As I found each parser for different SQL dialect in grammars-v4 has own way.

In general, yes, but they have a lot of things in common.

from antlr_psql.

tshprecher avatar tshprecher commented on July 3, 2024

I'll tell you what. Let me scramble to get as much done of this by the end of Oct 1 (one month). There are things that bug me about the TODOs littered everywhere and the fact that there are tens of thousands of small individual test files that should be consolidated once this is more stable to avoid ballooning the size of antlr/grammars-v4.

It's just a little rough around the edges, but it's getting there. I do want to finish this, but life has gotten in the way.

from antlr_psql.

KvanTTT avatar KvanTTT commented on July 3, 2024

Ok, sure, take your time. No rush anyway.

from antlr_psql.

tshprecher avatar tshprecher commented on July 3, 2024

I won't be able to finish this by Oct 1, but with the help @mebelousov we are making progress and I am committed to getting this done. I'm also coming around to @mebelousov's opinion above that this is easier to maintain as a standalone repository, especially as later versions of Postgres are also supported.

from antlr_psql.

mebelousov avatar mebelousov commented on July 3, 2024

I hope that we could be done with the parser by year's end.

@tshprecher how about add some tags to the repository? Now antlr_psql is not included in search with "antlr4 postgresql" https://github.com/search?q=antlr4+postgresql

from antlr_psql.

tshprecher avatar tshprecher commented on July 3, 2024

Good idea, @mebelousov. I added the tags and now the repo shows up in that search. I think we can get this done by the end of the year. The major queries (SELECT, INSERT, UPDATE, and DELETE) have mostly been tackled.

from antlr_psql.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.