Hey there!
I am really happy with using Metabase - great software and community!
Recently I updated to the latest version and now I am able to use the SQL snippets to shorten my code - they work perfectly!
I have a few things that concern me about them:
-
I am writing big queries and right now I have a lot of SQL snippets inside my code. However, sometimes with having so many snippets you might get lost in your code. It would be great to add a button that would not remove the snippets but show you the code without them. Imagine a scenario where you want to find a bug and you have a lot of snippets. Using such a button would allow you to quickly trace the error.
-
Is it possible to implement such a feature that once a snippet is added to check whether the shortcode is used in existing queries and therefore suggest to replace the code with the snippet if needed? It would be useful! (Sorry if it is possible and I missed it)
-
It would greatly extend the feature if it supports variables in itself too. If you implement a snippet that has a variable in it to directly pop up on top of the query and be usable.
These are a few suggestions that would bring greater functionality to your product.
All the best!