MCPcopy
hub / github.com/sqlc-dev/sqlc / identifier

Function identifier

internal/engine/sqlite/convert.go:30–36  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

28}
29
30func identifier(id string) string {
31 if len(id) >= 2 && id[0] == '"' && id[len(id)-1] == '"' {
32 unquoted, _ := strconv.Unquote(id)
33 return unquoted
34 }
35 return strings.ToLower(id)
36}
37
38func NewIdentifier(t string) *ast.String {
39 return &ast.String{Str: identifier(t)}

Calls

no outgoing calls

Tested by

no test coverage detected