package
0.0.0-20210525032257-e7b9574609c3
Repository: https://github.com/studyzy/sqlparse.git
Documentation: pkg.go.dev
# Functions
CollationID2Name return the collation name by the given id.
CompatibleCollate checks whether the two collate are the same.
EnableNewCollations enables the new collation.
GetCollationByName wraps charset.GetCollationByName, it checks the collation.
GetCollator get the collator according to collate, it will return the binary collator if the corresponding collator doesn't exist.
GetCollatorByID get the collator according to id, it will return the binary collator if the corresponding collator doesn't exist.
GetSupportedCollations gets information for all collations supported so far.
IsCICollation returns if the collation is case-sensitive.
NewCollationEnabled returns if the new collations are enabled.
RestoreCollationIDIfNeeded restores a collation id if the new collations are enabled.
RewriteNewCollationIDIfNeeded rewrites a collation id if the new collations are enabled.
SetNewCollationEnabledForTest sets if the new collation are enabled in test.
# Constants
DefaultLen is set for datum if the string datum don't know its length.
# Variables
ErrIllegalMixCollation is returned when illegal mix of collations.
ErrUnsupportedCollation is returned when an unsupported collation is specified.
# Interfaces
Collator provides functionality for comparing strings for a given collation order.
WildcardPattern is the interface used for wildcard pattern match.