Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
package
golang
2
3
func
escape(s string) string {
4
if
IsReserved(s) {
5
return
s +
"_"
6
}
7
return
s
8
}
9
10
func
IsReserved(s string) bool {
11
switch
s {
Callers
4
Pairs
Method · 0.85
ReturnName
Method · 0.85
Params
Method · 0.85
buildQueries
Function · 0.85
Calls
1
IsReserved
Function · 0.85
Tested by
no test coverage detected