package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev
# Functions
GetAllCharsets gets all charset descriptions in the local charsets.
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.
GetCollations returns a list for all collations.
GetDefaultCollation returns the default collation for charset.
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.