package
5.2.0-alpha+incompatible
Repository: https://github.com/pingcap/parser.git
Documentation: pkg.go.dev
# Functions
GetCharsetDesc gets charset descriptions in the local charsets.
GetCharsetInfo returns charset and collation for cs as name.
GetCharsetInfoByID returns charset and collation for id as cs_number.
GetCollationByID returns collations by given id.
GetCollations returns a list for all collations.
GetDefaultCharsetAndCollate returns the default charset and collation.
GetDefaultCollation returns the default collation for charset.
GetSupportedCharsets gets descriptions for all charsets supported so far.
GetSupportedCollations gets information for all collations supported so far.
Lookup returns the encoding with the specified label, and its canonical name.
ValidCharsetAndCollation checks the charset and the collation validity and returns a boolean.
# Constants
CharsetASCII is a subset of UTF8.
CharsetBin is used for marking binary charset.
CharsetLatin1 is a single byte charset.
CharsetUTF8 is the default charset for string types.
CharsetUTF8MB4 represents 4 bytes utf8, which works the same way as utf8 in Go.
CollationASCII is the default collation for CharsetACSII.
CollationBin is the default collation for CharsetBin.
CollationLatin1 is the default collation for CharsetLatin1.
CollationUTF8 is the default collation for CharsetUTF8.
CollationUTF8MB4 is the default collation for CharsetUTF8MB4.