remote

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewCharset

func NewCharset(conn *mysql.Conn, csname string) *Charset

func (*Charset) Convert

func (c *Charset) Convert(dst, src []byte, srcCharset charset.Charset) ([]byte, error)

func (*Charset) DecodeRune

func (c *Charset) DecodeRune(bytes []byte) (rune, int)

func (*Charset) DecodeToUTF8

func (c *Charset) DecodeToUTF8(dst, src []byte) ([]byte, error)

func (*Charset) EncodeFromUTF8

func (c *Charset) EncodeFromUTF8(dst, src []byte) ([]byte, error)

func (*Charset) EncodeRune

func (c *Charset) EncodeRune(dst []byte, r rune) int

func (*Charset) IsSuperset

func (c *Charset) IsSuperset(_ charset.Charset) bool

func (*Charset) Name

func (c *Charset) Name() string

func (*Charset) SupportsSupplementaryChars

func (c *Charset) SupportsSupplementaryChars() bool

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 NewCollation

func NewCollation(conn *mysql.Conn, collname string) *Collation

func (*Collation) Charset

func (c *Collation) Charset() charset.Charset

func (*Collation) Collate

func (c *Collation) Collate(left, right []byte, isPrefix bool) int

func (*Collation) Hash

func (c *Collation) Hash(_ []byte, _ int) collations.HashCode

func (*Collation) ID

func (c *Collation) ID() collations.ID

func (*Collation) Init

func (c *Collation) Init()

func (*Collation) IsBinary

func (c *Collation) IsBinary() bool

func (*Collation) LastError

func (c *Collation) LastError() error

func (*Collation) Name

func (c *Collation) Name() string

func (*Collation) WeightString

func (c *Collation) WeightString(dst, src []byte, numCodepoints int) []byte

func (*Collation) WeightStringLen

func (c *Collation) WeightStringLen(_ int) int

func (*Collation) Wildcard

func (c *Collation) Wildcard(pat []byte, _ rune, _ rune, escape rune) collations.WildcardPattern

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL