package
2.1.0-alpha.20180416+incompatible
Repository: https://github.com/coyle/cockroach.git
Documentation: pkg.go.dev

# Functions

EncodeRestrictedSQLIdent writes the identifier in s to buf.
EncodeSQLBytes encodes the SQL byte array in 'in' to buf.
EncodeSQLString writes a string literal to buf.
EncodeSQLStringInsideArray writes a string literal to buf using the "string within array" formatting.
EncodeSQLStringWithFlags writes a string literal to buf.
EncodeUnrestrictedSQLIdent writes the identifier in s to buf.
EscapeSQLString returns an escaped SQL representation of the given string.
HexEncodeString writes a hexadecimal representation of the string to buf.
IsDigit returns true if the character is between 0 and 9.
IsHexDigit returns true if the character is a valid hexadecimal digit.
IsIdentMiddle returns true if the character is valid inside an identifier.
IsIdentStart returns true if the character is valid at the start of an identifier.
NormalizeName normalizes to lowercase and Unicode Normalization Form C (NFC).

# Constants

EncBareIdentifiers indicates that identifiers will be rendered without wrapping quotes.
EncBareStrings indicates that strings will be rendered without wrapping quotes if they contain no special characters.
EncFirstFreeFlagBit needs to remain unused; it is used as base bit offset for tree.FmtFlags.
EncNoFlags indicates nothing special should happen while encoding.

# Type aliases

EncodeFlags influence the formatting of strings and identifiers.