MCPcopy Index your code
hub / github.com/cockroachdb/cockroachdb-parser / MakeCode

Function MakeCode

pkg/sql/pgwire/pgcode/codes.go:17–19  ·  view source on GitHub ↗

MakeCode converts a string into a Code.

(s string)

Source from the content-addressed store, hash-verified

15
16// MakeCode converts a string into a Code.
17func MakeCode(s string) Code {
18 return Code{code: s}
19}
20
21// String returns the underlying pgcode string.
22func (c Code) String() string {

Callers 3

GetPGCodeInternalFunction · 0.92
ComputeDefaultCodeFunction · 0.92
codes.goFile · 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…