MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NewStrVal

Function NewStrVal

pkg/sql/sem/tree/constant.go:474–476  ·  view source on GitHub ↗

NewStrVal constructs a StrVal instance. This is used during parsing when interpreting a token of type SCONST, i.e. *not* using the b'...' or x'...' syntax.

(s string)

Source from the content-addressed store, hash-verified

472// parsing when interpreting a token of type SCONST, i.e. *not* using
473// the b'...' or x'...' syntax.
474func NewStrVal(s string) *StrVal {
475 return &StrVal{s: s}
476}
477
478// NewBytesStrVal constructs a StrVal instance suitable as byte array.
479// This is used during parsing when interpreting a token of type BCONST,

Callers 1

FormatURIMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…