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

Method kw

pkg/formatter/render.go:43–52  ·  view source on GitHub ↗

kw applies keyword casing to a keyword string.

(keyword string)

Source from the content-addressed store, hash-verified

41
42// kw applies keyword casing to a keyword string.
43func (f *nodeFormatter) kw(keyword string) string {
44 switch f.opts.KeywordCase {
45 case ast.KeywordUpper:
46 return strings.ToUpper(keyword)
47 case ast.KeywordLower:
48 return strings.ToLower(keyword)
49 default:
50 return keyword
51 }
52}
53
54// indentStr returns the current indentation string.
55func (f *nodeFormatter) indentStr() string {

Callers 15

renderCreateSequenceFunction · 0.80
renderAlterSequenceFunction · 0.80
renderDropSequenceFunction · 0.80
renderShowFunction · 0.80
renderDescribeFunction · 0.80
renderSelectFunction · 0.80
renderInsertFunction · 0.80
renderUpdateFunction · 0.80
renderDeleteFunction · 0.80
renderCreateTableFunction · 0.80
renderSetOperationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected