Skip to content

Commit 0659c61

Browse files
committed
✨ Add ".sql" command
1 parent ea05a02 commit 0659c61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller/middleware.go

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ func middlewareDotCommand(queryData *QueryData) bool {
197197
queryData.StatusCode = 0
198198
} else {
199199
switch strings.ToLower(args[0]) {
200+
case "sql":
201+
queryData.Config.SetString("language", "")
202+
queryData.Message = "Switched back to SQL"
203+
200204
case "prql":
201205
queryData.Config.SetString("language", "prql")
202206
queryData.Message = "Switched to PRQL"

0 commit comments

Comments
 (0)