Skip to content

Commit

Permalink
Merge pull request #22 from nao1215/add-completion-sql
Browse files Browse the repository at this point in the history
Add sqlite3 syntax completion
  • Loading branch information
nao1215 authored Nov 19, 2022
2 parents cfeaa1f + d0cc94a commit b146cf8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,18 @@ func (s *Shell) completer(d prompt.Document) []prompt.Suggest {
{Text: "SET", Description: "SQL: specify values to be updated"},
{Text: "DELETE FROM", Description: "SQL: specify tables to be deleted"},
{Text: "IN", Description: "SQL: condition grouping"},
{Text: "LIKE", Description: "SQL: use wildcards to perform pattern matching"},
{Text: "GLOB", Description: "SQL: match only text values against a pattern using wildcard"},
{Text: "BETWEEN", Description: "SQL: selects values within a given range"},
{Text: "IS NULL", Description: "SQL: selects null values"},
{Text: "DISTINCT", Description: "SQL: exclude duplicate values"},
{Text: "INNER JOIN", Description: "SQL: inner join tables"},
{Text: "OUTER JOIN", Description: "SQL: outer join tables"},
{Text: "CROSS JOIN", Description: "SQL: cross join tables"},
{Text: "NATURAL", Description: "SQL: natural join tables"},
{Text: "LIMIT", Description: "SQL: upper Limit of records"},
{Text: "OFFSET", Description: "SQL: identify the starting point to return result rows"},
{Text: "CASE", Description: "SQL: branching by conditions"},
{Text: "table", Description: "sqly command argument: table output format"},
{Text: "markdown", Description: "sqly command argument: markdown table output format"},
{Text: "csv", Description: "sqly command argument: csv output format"},
Expand Down

0 comments on commit b146cf8

Please sign in to comment.