[Community feedback] Learn SQL formatting style from examples #25
Closed
DavLagoHern
started this conversation in
Ideas
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
This came up in a recent conversation with a MySQL user who likes the formatting flexibility of JetBrains editors, but would rather not configure dozens of code-style rules manually.
The idea
Instead of manually choosing every indentation and line-break rule, LakeDB could learn a preferred SQL formatting style from a few example queries.
For example, the user could provide examples of:
LakeDB could then build a formatting profile from those examples and use it when formatting future SQL.
Possible direction
A first version could work as an explicit profile:
This would be separate from LakeDB's existing formatting modes rather than replacing them.
Looking for feedback
This is community feedback, not a release promise yet.
All reactions