package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Packages
all-keywords generates sql/lexbase/keywords.go from sql.y.
# Functions
EncodeEscapedSQLIdent writes the identifier in s to buf.
EncodeRestrictedSQLIdent writes the identifier in s to buf.
EncodeSQLBytes encodes the SQL byte array in 'in' to buf, to a format suitable for re-scanning.
EncodeSQLBytesInner is like EncodeSQLBytes but does not include the outer quote delimiter and the 'b' prefix.
EncodeSQLString writes a string literal to buf.
EncodeSQLStringWithFlags writes a string literal to buf.
EncodeUnrestrictedSQLIdent writes the identifier in s to buf.
EscapeSQLIdent ensures that the potential identifier in s is fully quoted, so that any special character it contains is not at risk of "spilling" in the surrounding syntax.
EscapeSQLString returns an escaped SQL representation of the given string.
IsBareIdentifier returns true if the input string is a permissible bare SQL identifier.
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).
NormalizeString normalizes to Unicode Normalization Form C (NFC).
# Constants
EncBareIdentifiers indicates that identifiers will be rendered without wrapping quotes.
EncBareReservedKeywords indicates that reserved keywords 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.
# Variables
AllowedExperimental contains keywords for which the EXPERIMENTAL_ or TESTING_ prefixes are allowed to be parsed along with the keyword to the same token.
# Type aliases
EncodeFlags influence the formatting of strings and identifiers.