charset

package
v0.0.0-...-7f9930a Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CharsetBin is used for marking binary charset.
	CharsetBin = "binary"
)

Variables

This section is empty.

Functions

func ValidCharsetAndCollation

func ValidCharsetAndCollation(cs string, co string) bool

ValidCharsetAndCollation checks the charset and the collation validity and retuns a boolean.

Types

type Charset

type Charset struct {
	Name             string
	DefaultCollation *Collation
	Collations       map[string]*Collation
	Desc             string
	Maxlen           int
}

Charset is a charset. Now we only support MySQL.

type Collation

type Collation struct {
	ID          int
	CharsetName string
	Name        string
	IsDefault   bool
}

Collation is a collation. Now we only support MySQL.

type Desc

type Desc struct {
	Name             string
	Desc             string
	DefaultCollation string
	Maxlen           int
}

Desc is a charset description.

func GetAllCharsets

func GetAllCharsets() []*Desc

GetAllCharsets gets all charset descriptions in the local charsets.

Jump to

Keyboard shortcuts

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