Skip to content

Wishlist: SQL-Query generator #3

Closed

Description

@cleder

Is generating Queries (like MS Access) on the roadmap or a possible future feature? For me that would be the Killer application feature ;-)

Activity

  1. dineug commented on May 2, 2020

    @dineug
    Owner

    What an interesting feature!
    It wasn't on the roadmap.
    I'll add it.

    Thanks for letting me know.

  2. cleder commented on May 2, 2020

    @cleder
    Author

    A possible use case I was thinking about was to use it in superset https://github.com/apache/incubator-superset instead of or in addition to e.g: https://superset.apache.org/sqllab.html

  3. cleder commented on May 2, 2020

    @cleder
    Author

    Do you know of https://github.com/mWater/jsonql? This seems to be a nice intermediate format/API specification (alternatives may be available, that is just the only one I could find)

  4. dineug commented on May 3, 2020

    @dineug
    Owner

    It's easy for anyone to use it
    It's a standard web interface.
    It was the use case I thought.

    An example of that was vscode extension.

    But I think it's not enough if you don't fully support reverse engineering with SQL DDL.

    The https://github.com/mWater/jsonql you told me about
    I'll refer to it when I develop it. Thank you!

  5. cleder commented on May 18, 2020

    @cleder
    Author

    Sorry, this may be OT, but I thought, I use this issue to link interesting stuff related to this here.

    https://github.com/danielrearden/sqlmancer

    Sqlmancer is a Node.js library that empowers you to effortlessly and efficiently translate GraphQL queries into SQL statements.
    Multiple dialect support. Sqlmancer supports Postgres, MySQL, MariaDB and SQLite, enabling you to incorporate it into existing projects regardless of what flavor of SQL you’re using.
    Performance. Avoid the N+1 problem by building a single SQL…

    I do not want to distract you from your current great work, quite on the contrary, keep it up :-)

  6. cleder commented on May 18, 2020

    @cleder
    Author

    But I think it's not enough if you don't fully support reverse engineering with SQL DDL.

    Is there an intermediate JSON format?

    Does the full DDL to VUERD conversion pipeline have to be implemented here?

    I can think of existing introspection tools that may be adopted to spit out some well-defined JSON.

  7. dineug commented on May 19, 2020

    @dineug
    Owner

    Intermediate json format does not exist

    The conversion pipeline may be implemented externally.

    What I'm thinking right now is...

    sql-ddl-to-json-schema contributing
    or
    syntax-parser use

    Or to take advantage of the existing grammar.
    WebAssembly is thinking, too.

    I haven't thought about this yet, so I think it'll be clear when it's developed.

  8. cleder commented on May 19, 2020

    @cleder
    Author

    The 'SQL DDL to JSON Schema converter' looks promising, I like the compact format. Another pro for a format like this would be that the target could also be an ORM like SQLalchemy, Hibernate or typeorm.io - many others are also available

  9. added
    enhancement
    on Sep 5, 2020
  10. cleder commented on Sep 29, 2021

    @cleder
    Author

    https://github.com/xnuinside/simple-ddl-parser also defines a DDL dialect agnostic json schema

  11. Repository owner locked and limited conversation to collaborators on Dec 30, 2021
  12. converted this issue into a discussion #260 on Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions