Skip to content

Commit

Permalink
✨ Add ".sql" command
Browse files Browse the repository at this point in the history
  • Loading branch information
julien040 committed Jul 28, 2024
1 parent ea05a02 commit 0659c61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ func middlewareDotCommand(queryData *QueryData) bool {
queryData.StatusCode = 0
} else {
switch strings.ToLower(args[0]) {
case "sql":
queryData.Config.SetString("language", "")
queryData.Message = "Switched back to SQL"

case "prql":
queryData.Config.SetString("language", "prql")
queryData.Message = "Switched to PRQL"
Expand Down

0 comments on commit 0659c61

Please sign in to comment.