-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
suggestions.go
24 lines (20 loc) · 1.12 KB
/
suggestions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package repl
import (
"github.com/c-bata/go-prompt"
)
var suggestions = []prompt.Suggest{
// Command =========================================================================================================
{Text: ".help", Description: "Help snippet"},
{Text: ".open", Description: "Select database"},
{Text: ".save", Description: "Save payload from this session in database"},
{Text: ".close", Description: "Close this session"},
// SQL =============================================================================================================
// Table -----------------------------------------------------------------------------------------------------------
{Text: "create table", Description: "create new table"},
{Text: "drop table", Description: "drop table"},
// CRUD ------------------------------------------------------------------------------------------------------------
{Text: "SELECT", Description: "get values from table"},
{Text: "UPDATE", Description: "update values in table"},
{Text: "INSERT INTO", Description: "insert new value into table"},
{Text: "DELETE", Description: "delete value from table"},
}