Skip to content

Commit b146cf8

Browse files
authored
Merge pull request #22 from nao1215/add-completion-sql
Add sqlite3 syntax completion
2 parents cfeaa1f + d0cc94a commit b146cf8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

shell/shell.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,18 @@ func (s *Shell) completer(d prompt.Document) []prompt.Suggest {
174174
{Text: "SET", Description: "SQL: specify values to be updated"},
175175
{Text: "DELETE FROM", Description: "SQL: specify tables to be deleted"},
176176
{Text: "IN", Description: "SQL: condition grouping"},
177+
{Text: "LIKE", Description: "SQL: use wildcards to perform pattern matching"},
178+
{Text: "GLOB", Description: "SQL: match only text values against a pattern using wildcard"},
179+
{Text: "BETWEEN", Description: "SQL: selects values within a given range"},
180+
{Text: "IS NULL", Description: "SQL: selects null values"},
181+
{Text: "DISTINCT", Description: "SQL: exclude duplicate values"},
177182
{Text: "INNER JOIN", Description: "SQL: inner join tables"},
183+
{Text: "OUTER JOIN", Description: "SQL: outer join tables"},
184+
{Text: "CROSS JOIN", Description: "SQL: cross join tables"},
185+
{Text: "NATURAL", Description: "SQL: natural join tables"},
178186
{Text: "LIMIT", Description: "SQL: upper Limit of records"},
187+
{Text: "OFFSET", Description: "SQL: identify the starting point to return result rows"},
188+
{Text: "CASE", Description: "SQL: branching by conditions"},
179189
{Text: "table", Description: "sqly command argument: table output format"},
180190
{Text: "markdown", Description: "sqly command argument: markdown table output format"},
181191
{Text: "csv", Description: "sqly command argument: csv output format"},

0 commit comments

Comments
 (0)