Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 0257fee

Browse files
authored
Merge pull request #94 from mtxr/feature/mysql-describe-function
Add support for MySQL describe function
2 parents fd199ef + f93bcdf commit 0257fee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SQLTools.sublime-settings

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@
162162
"options": ["-f", "--silent", "--raw"]
163163
},
164164
"functions": {
165-
"query": "select concat('|', routine_schema, '.', routine_name, '|') from information_schema.routines where routine_schema = database();",
165+
"query": "select concat('|', routine_schema, '.', routine_name, '()', '|') from information_schema.routines where routine_schema = database();",
166+
"options": ["-f", "--silent", "--raw"]
167+
},
168+
"desc function": {
169+
"query": "select routine_definition from information_schema.routines where concat(routine_schema, '.', routine_name) = '%s';",
166170
"options": ["-f", "--silent", "--raw"]
167171
},
168172
"explain plan": {

0 commit comments

Comments
 (0)