Add macro for extracting arguments

This commit is contained in:
jude
2024-02-16 20:09:32 +00:00
parent b81c3c80c1
commit d0833b7bca
2 changed files with 60 additions and 37 deletions

View File

@ -38,3 +38,13 @@ SELECT
WHERE m1.id = m2.id
)
FROM macro m1;
# # Check which commands are used in macros
# SELECT DISTINCT command_name
# FROM macro m2
# JOIN JSON_TABLE(
# commands,
# '$[*]' COLUMNS (
# command_name VARCHAR(64) PATH '$.command_name' ERROR ON ERROR,
# options JSON PATH '$.options' ERROR ON ERROR
# )) AS t1