MCPcopy
hub / github.com/dropbox/godropbox / String

Struct String

database/sqltypes/sqltypes.go:53–56  ·  view source on GitHub ↗

String represents any SQL type that needs to be represented using quotes. If isUtf8 is false, it will be hex encoded so it's safe for exception reporting, etc.

Source from the content-addressed store, hash-verified

51// String represents any SQL type that needs to be represented using quotes.
52// If isUtf8 is false, it will be hex encoded so it's safe for exception reporting, etc.
53type String struct {
54 data []byte
55 isUtf8 bool
56}
57
58// MakeNumeric makes a Numeric from a []byte without validation.
59func MakeNumeric(b []byte) Value {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected