this is a jetbrains plugin in for datagrip/database tool, it have 4 features now:
replace sql param like this(start with three -):
--- $a=1
SELECT $a
(mainly for copy from/to grafana without change)
sync sql snippet to other files under parent parent folder
- before sync
-- A.sql
-- toSyncSnippet {
SELECT 1
--}
-- B.sql
-- toSyncSnippet {
--}
- after run sql sync on file A.sql
-- A.sql
-- toSyncSnippet {
SELECT 1
--}
-- B.sql
-- toSyncSnippet {
SELECT 1
--}
- Rename sync block name
- split block to 2 blocks
- Right Click on sql file, find the right item