Documentation ¶
Index ¶
- type Charset
- func (c *Charset) Convert(dst, src []byte, srcCharset charset.Charset) ([]byte, error)
- func (c *Charset) DecodeRune(bytes []byte) (rune, int)
- func (c *Charset) DecodeToUTF8(dst, src []byte) ([]byte, error)
- func (c *Charset) EncodeFromUTF8(dst, src []byte) ([]byte, error)
- func (c *Charset) EncodeRune(dst []byte, r rune) int
- func (c *Charset) IsSuperset(_ charset.Charset) bool
- func (c *Charset) Name() string
- func (c *Charset) SupportsSupplementaryChars() bool
- type Collation
- func (c *Collation) Charset() charset.Charset
- func (c *Collation) Collate(left, right []byte, isPrefix bool) int
- func (c *Collation) Hash(_ []byte, _ int) collations.HashCode
- func (c *Collation) ID() collations.ID
- func (c *Collation) Init()
- func (c *Collation) IsBinary() bool
- func (c *Collation) LastError() error
- func (c *Collation) Name() string
- func (c *Collation) WeightString(dst, src []byte, numCodepoints int) []byte
- func (c *Collation) WeightStringLen(_ int) int
- func (c *Collation) Wildcard(pat []byte, _ rune, _ rune, escape rune) collations.WildcardPattern
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charset ¶
type Charset struct {
// contains filtered or unexported fields
}
func (*Charset) SupportsSupplementaryChars ¶
type Collation ¶
type Collation struct {
// contains filtered or unexported fields
}
Collation is a generic implementation of the Collation interface that supports any collation in MySQL by performing the collation operation directly on a remote `mysqld` instance. It is not particularly efficient compared to the native Collation implementations in Vitess, but it offers authoritative results for all collation types and can be used as a fallback or as a way to test our native implementations.
func (*Collation) ID ¶
func (c *Collation) ID() collations.ID
func (*Collation) WeightString ¶
func (*Collation) WeightStringLen ¶
func (*Collation) Wildcard ¶
func (c *Collation) Wildcard(pat []byte, _ rune, _ rune, escape rune) collations.WildcardPattern
Click to show internal directories.
Click to hide internal directories.