MCPcopy
hub / github.com/sqldef/sqldef / NewStrVal

Function NewStrVal

parser/node.go:2173–2175  ·  view source on GitHub ↗

NewStrVal builds a new StrVal.

(in string)

Source from the content-addressed store, hash-verified

2171
2172// NewStrVal builds a new StrVal.
2173func NewStrVal(in string) *SQLVal {
2174 return &SQLVal{Type: StrVal, Val: in}
2175}
2176
2177// isFoldableValueCast reports whether a value-context string cast should be kept
2178// (as a CastExpr) so normalize can fold it to match PostgreSQL's read-back. Only

Callers 4

parseExprMethod · 0.92
normalizeExprFunction · 0.92
FormatMethod · 0.85
ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected