andialbrecht / sqlparse

A non-validating SQL parser module for Python
BSD 3-Clause "New" or "Revised" License
3.63k stars 684 forks source link

Still being maintained? #624

Open ConstantinoSchillebeeckx opened 3 years ago

ConstantinoSchillebeeckx commented 3 years ago

Is this project still being maintained? There are 172 open issues, 18 PRs and the last commit was in Dec 2020 :(

andialbrecht commented 3 years ago

yes, just busy at work

Am Mi., 26. Mai 2021 um 14:35 Uhr schrieb Constantino Schillebeeckx < @.***>:

Is this project still being maintained? There are 172 open issues, 18 PRs and the last commit was in Dec 2020 :(

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andialbrecht/sqlparse/issues/624, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAGIIBBBF5BCF455G2SEQ3TPTTILANCNFSM45R57LQA .

ConstantinoSchillebeeckx commented 3 years ago

Anything we can do to help out?

tobymao commented 3 years ago

I've created a full sql parser / transpiler from scratch and am actively developing it. It has a full tokenizer / parser and doens't use regex.

It can transpile from various sql dialects to other sql dialects as well as things like formatting and parsing things out.

https://github.com/tobymao/sqlglot

f-raffa commented 2 years ago

Anything we can do to help out?

Yeah, actually if there was something we could do to help out I'd like to contribute... Because of my job I worked I lot on the code and I would also have some changes to propose for discussion. Would you be interested?

f-raffa commented 2 years ago

I've created a full sql parser / transpiler from scratch and am actively developing it. It has a full tokenizer / parser and doens't use regex.

It can transpile from various sql dialects to other sql dialects as well as things like formatting and parsing things out.

https://github.com/tobymao/sqlglot

@tobymao: I checked your project and I was wondering if you were planning to integrate any formatting capabilities to it?

tobymao commented 2 years ago

@f-raffa i have a pretty mode, and you can chose the indent and padding levels

f-raffa commented 2 years ago

@tobymao: I see. I'd like simply to parse and format a sql statement without transpiling it. Does your app provide such a functionality? May you please share the command that I should use to do that?

tobymao commented 2 years ago

sqlglot.transpile("select * from x", read='presto', pretty=True)