MCPcopy
hub / github.com/sqldef/sqldef / NewValArg

Function NewValArg

parser/node.go:2219–2221  ·  view source on GitHub ↗

NewValArg builds a new ValArg.

(in string)

Source from the content-addressed store, hash-verified

2217
2218// NewValArg builds a new ValArg.
2219func NewValArg(in string) *SQLVal {
2220 return &SQLVal{Type: ValArg, Val: in}
2221}
2222
2223func NewBoolSQLVal(in bool) *SQLVal {
2224 return &SQLVal{Type: ValBool, Val: fmt.Sprintf("%t", in)}

Callers 4

parseDefaultValueMethod · 0.92
normalizeExprFunction · 0.92
NewValArgWithOptFunction · 0.85
ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected