MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewKeywords

Function NewKeywords

pkg/sql/keywords/categories.go:53–63  ·  view source on GitHub ↗

NewKeywords creates a new Keywords instance

()

Source from the content-addressed store, hash-verified

51
52// NewKeywords creates a new Keywords instance
53func NewKeywords() *Keywords {
54 k := &Keywords{
55 DMLKeywords: make(KeywordCategory),
56 CompoundKeywords: make(KeywordCategory),
57 keywordMap: make(map[string]Keyword),
58 reservedKeywords: make(map[string]bool),
59 ignoreCase: true,
60 }
61 k.initialize()
62 return k
63}
64
65// initialize sets up the initial keyword mappings
66func (k *Keywords) initialize() {

Callers 8

NewFunction · 0.92
TestNewWithKeywordsFunction · 0.92
TestNewKeywordsFunction · 0.85

Calls 1

initializeMethod · 0.95