- Notifications
You must be signed in to change notification settings - Fork102
SQL functions: Auto suggestions for sql function input parameters as query operators/comparisions#433
-
FeatureI would love it if the PLS language server could suggest input parameters as operators in sql functions. The main usage would be where clauses. Right now, the PLS detects the usage of incorrect named input parameters. That's why I believe it should be possible to suggest comparison operators in where clauses. Examplecreatefunctiontest_auto_suggesstions_in_where_comparison(user_id uuid) returnsusers_hidden.users language sqlas$$select*fromusers_hidden.users uwhereu.id= user_id;$$; Here I have a working sql function. I would like to find a user with a given Current behavior: Prefered behaviour as for select: AlternativesTyping it yourself. Possible but worse DX experience. RelevanceLow. More a quality-of-life improvement but probably not that hard to implement. What do you think@juleswritescode ? |
BetaWas this translation helpful?Give feedback.