Versions in this module Expand all Collapse all v0 v0.0.1 Mar 19, 2024 Changes in this version + const CharsetARMSCII8 + const CharsetASCII + const CharsetBig5 + const CharsetBin + const CharsetBinary + const CharsetCP1250 + const CharsetCP1251 + const CharsetCP1256 + const CharsetCP1257 + const CharsetCP850 + const CharsetCP852 + const CharsetCP866 + const CharsetCP932 + const CharsetDEC8 + const CharsetEUCJPMS + const CharsetEUCKR + const CharsetGB18030 + const CharsetGB2312 + const CharsetGBK + const CharsetGEOSTD8 + const CharsetGreek + const CharsetHP8 + const CharsetHebrew + const CharsetKEYBCS2 + const CharsetKOI8R + const CharsetKOI8U + const CharsetLatin1 + const CharsetLatin2 + const CharsetLatin5 + const CharsetLatin7 + const CharsetMacCE + const CharsetMacRoman + const CharsetSJIS + const CharsetSWE7 + const CharsetTIS620 + const CharsetUCS2 + const CharsetUJIS + const CharsetUTF16 + const CharsetUTF16LE + const CharsetUTF32 + const CharsetUTF8 + const CharsetUTF8MB4 + const CollationASCII + const CollationBin + const CollationGBKBin + const CollationLatin1 + const CollationUTF8 + const CollationUTF8MB4 + var ErrCollationCharsetMismatch = terror.ClassDDL.NewStd(mysql.ErrCollationCharsetMismatch) + var ErrUnknownCollation = terror.ClassDDL.NewStd(mysql.ErrUnknownCollation) + func AddCharset(c *Charset) + func AddCollation(c *Collation) + func FindNextCharacterLength(label string) func([]byte) int + func GetCharsetInfoByID(coID int) (string, string, error) + func GetDefaultCharsetAndCollate() (string, string) + func GetDefaultCollation(charset string) (string, error) + func GetDefaultCollationLegacy(charset string) (string, error) + func Lookup(label string) (e encoding.Encoding, name string) + func RemoveCharset(c string) + func ValidCharsetAndCollation(cs string, co string) bool + type Charset struct + Collations map[string]*Collation + DefaultCollation string + Desc string + Maxlen int + Name string + func GetCharsetInfo(cs string) (*Charset, error) + func GetSupportedCharsets() []*Charset + type Collation struct + CharsetName string + ID int + IsDefault bool + Name string + func GetCollationByID(id int) (*Collation, error) + func GetCollationByName(name string) (*Collation, error) + func GetCollations() []*Collation + func GetSupportedCollations() []*Collation + type Encoding struct + func NewEncoding(label string) *Encoding + func (e *Encoding) Decode(dest, src []byte) ([]byte, error) + func (e *Encoding) Enabled() bool + func (e *Encoding) Encode(dest, src []byte) ([]byte, error) + func (e *Encoding) Name() string + func (e *Encoding) UpdateEncoding(label EncodingLabel) + type EncodingLabel string + func Format(label string) EncodingLabel + func Formatted(label string) EncodingLabel