- Notifications
You must be signed in to change notification settings - Fork102
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
It would be excellent to have support for templated parameters: SELECT*WHEREaq.id= $assessment_question_idFROM assessment_questionsAS aq; Where
Currently, I get an error: Error message on `0.6.1`
SQLFluff takes the second approach (replace the templated parameter with the name in quotes), andallows you to configure templating, as well as overriding the replacement behavior.
Default:
With customization:
Related: |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 11 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
BetaWas this translation helpful?Give feedback.
All reactions
-
It would replace libpg_query entirely. I am currently contributing a bit tohttps://squawkhq.com because the parser there is quite advanced compared to any other attempt I have seen so far. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
I am also aware of the |
BetaWas this translation helpful?Give feedback.
All reactions
-
The configuration could take inspiration fromhttps://github.com/UniqueVision/plpgsql-lsp?tab=readme-ov-file#query-parameters
|
BetaWas this translation helpful?Give feedback.
All reactions
-
hey! i think we can now start to work in this. our approach now is to
I think this is the easiest and most robust approach. the important part was the custom lexer that supports all kind of parameters. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Awesome! |
BetaWas this translation helpful?Give feedback.