MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewKeywordDialect

Function NewKeywordDialect

expr/dialect.go:186–195  ·  view source on GitHub ↗
(kw []string)

Source from the content-addressed store, hash-verified

184}
185
186func NewKeywordDialect(kw []string) DialectWriter {
187 m := make(map[string]struct{}, len(kw))
188 for _, w := range kw {
189 m[w] = struct{}{}
190 }
191 return &keywordDialect{
192 &defaultDialect{LiteralQuote: '"', IdentityQuote: '`', Null: "NULL"},
193 m,
194 }
195}
196func (w *keywordDialect) WriteIdentity(id string) {
197 _, isKeyword := w.kw[strings.ToLower(id)]
198 if isKeyword {

Callers 1

NewSqlDialectFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected