MCPcopy
hub / github.com/sqldef/sqldef / NewValArgWithOpt

Function NewValArgWithOpt

parser/node.go:2232–2237  ·  view source on GitHub ↗
(in string, opt *SQLVal)

Source from the content-addressed store, hash-verified

2230}
2231
2232func NewValArgWithOpt(in string, opt *SQLVal) *SQLVal {
2233 if opt != nil {
2234 return NewValArg(fmt.Sprintf("%s(%s)", in, opt.Val))
2235 }
2236 return NewValArg(in)
2237}
2238
2239// Format formats the node.
2240func (node *SQLVal) Format(buf *nodeBuffer) {

Callers 1

ParseMethod · 0.85

Calls 1

NewValArgFunction · 0.85

Tested by

no test coverage detected