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

Method IsDMLKeyword

pkg/sql/keywords/dml.go:20–23  ·  view source on GitHub ↗

IsDMLKeyword checks if a given string is a DML keyword

(s string)

Source from the content-addressed store, hash-verified

18
19// IsDMLKeyword checks if a given string is a DML keyword
20func (k *Keywords) IsDMLKeyword(s string) bool {
21 _, ok := k.DMLKeywords[s]
22 return ok
23}
24
25// GetDMLKeywordType returns the token type for a DML keyword
26func (k *Keywords) GetDMLKeywordType(s string) (models.TokenType, bool) {

Callers 1

Calls

no outgoing calls

Tested by 1