MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / escape

Function escape

internal/codegen/golang/reserved.go:3–8  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1package golang
2
3func escape(s string) string {
4 if IsReserved(s) {
5 return s + "_"
6 }
7 return s
8}
9
10func IsReserved(s string) bool {
11 switch s {

Callers 4

PairsMethod · 0.85
ReturnNameMethod · 0.85
ParamsMethod · 0.85
buildQueriesFunction · 0.85

Calls 1

IsReservedFunction · 0.85

Tested by

no test coverage detected