Versions in this module Expand all Collapse all v1 v1.0.1 Jan 29, 2021 Changes in this version + const CharsetASCII + const CharsetBin + const CharsetLatin1 + const CharsetUTF8 + const CharsetUTF8MB4 + const CollationASCII + const CollationBin + const CollationLatin1 + const CollationUTF8 + const CollationUTF8MB4 + var ErrCollationCharsetMismatch = terror.ClassDDL.NewStd(mysql.ErrCollationCharsetMismatch) + var ErrUnknownCollation = terror.ClassDDL.NewStd(mysql.ErrUnknownCollation) + func GetCharsetInfo(cs string) (string, string, error) + func GetCharsetInfoByID(coID int) (string, string, error) + func GetDefaultCharsetAndCollate() (string, string) + func GetDefaultCollation(charset string) (string, error) + func Lookup(label string) (e encoding.Encoding, name string) + func ValidCharsetAndCollation(cs string, co string) bool + type Charset struct + Collations map[string]*Collation + DefaultCollation string + Desc string + Maxlen int + Name string + 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 Desc struct + DefaultCollation string + Desc string + Maxlen int + Name string + func GetCharsetDesc(cs string) (*Desc, error) + func GetSupportedCharsets() []*Desc