Coder Social home page Coder Social logo

Wishlist: SQL-Query generator about erd-editor HOT 9 CLOSED

dineug avatar dineug commented on July 17, 2024 1
Wishlist: SQL-Query generator

from erd-editor.

Comments (9)

dineug avatar dineug commented on July 17, 2024 1

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

Thanks for letting me know.

from erd-editor.

dineug avatar dineug commented on July 17, 2024 1

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!

from erd-editor.

cleder avatar cleder commented on July 17, 2024 1

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 :-)

from erd-editor.

dineug avatar dineug commented on July 17, 2024 1

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.

from erd-editor.

cleder avatar cleder commented on July 17, 2024 1

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

from erd-editor.

cleder avatar cleder commented on July 17, 2024

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

from erd-editor.

cleder avatar cleder commented on July 17, 2024

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)

from erd-editor.

cleder avatar cleder commented on July 17, 2024

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.

from erd-editor.

cleder avatar cleder commented on July 17, 2024

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

from erd-editor.

Related Issues (20)

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.