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

Function clean

internal/tools/sqlc-pg-gen/main.go:151–157  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

149}
150
151func clean(arg string) string {
152 arg = strings.TrimSpace(arg)
153 arg = strings.Replace(arg, "\"any\"", "any", -1)
154 arg = strings.Replace(arg, "\"char\"", "char", -1)
155 arg = strings.Replace(arg, "\"timestamp\"", "char", -1)
156 return arg
157}
158
159// writeFormattedGo executes `tmpl` with `data` as its context to the file `destPath`
160func writeFormattedGo(tmpl *template.Template, data any, destPath string) error {

Callers 2

ReturnTypeNameMethod · 0.85
TypeNameMethod · 0.85

Calls 1

ReplaceMethod · 0.45

Tested by

no test coverage detected