Versions in this module Expand all Collapse all v0 v0.0.8 Feb 17, 2022 Changes in this version + const DefaultLen + var ErrIllegalMixCollation = terror.ClassExpression.New(mysql.ErrCantAggregate2collations, ...) + var ErrUnsupportedCollation = terror.ClassDDL.New(mysql.ErrUnknownCollation, ...) + func CollationID2Name(id int32) string + func CompatibleCollate(collate1, collate2 string) bool + func EnableNewCollations() + func GetCollationByName(name string) (coll *charset.Collation, err error) + func GetSupportedCollations() []*charset.Collation + func IsCICollation(collate string) bool + func NewCollationEnabled() bool + func RestoreCollationIDIfNeeded(id int32) int32 + func RewriteNewCollationIDIfNeeded(id int32) int32 + func SetNewCollationEnabledForTest(flag bool) + type Collator interface + Compare func(a, b string) int + Key func(str string) []byte + Pattern func() WildcardPattern + func GetCollator(collate string) Collator + func GetCollatorByID(id int) Collator + type WildcardPattern interface + Compile func(patternStr string, escape byte) + DoMatch func(str string) bool