mysqlversion

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V

type V string

V provides information about MySQL versions.

func (V) CharsetToCollate

func (v V) CharsetToCollate(conn schema.ExecQuerier) (map[string]string, error)

CharsetToCollate returns the mapping from charset to its default collation.

func (V) CollateToCharset

func (v V) CollateToCharset(conn schema.ExecQuerier) (map[string]string, error)

CollateToCharset returns the mapping from a collation to its charset.

func (V) Compare

func (v V) Compare(w string) int

Compare returns an integer comparing two versions according to semantic version precedence.

func (V) GTE

func (v V) GTE(w string) bool

GTE reports if the version is >= w.

func (V) LT

func (v V) LT(w string) bool

LT reports if the version is < w.

func (V) Maria

func (v V) Maria() bool

Maria reports if the MySQL version is MariaDB.

func (V) SupportsCheck

func (v V) SupportsCheck() bool

SupportsCheck reports if the version supports the CHECK clause, and return the querying for getting them.

func (V) SupportsDisplayWidth

func (v V) SupportsDisplayWidth() bool

SupportsDisplayWidth reports if the version supports getting the display width information from the information schema.

func (V) SupportsEnforceCheck

func (v V) SupportsEnforceCheck() bool

SupportsEnforceCheck reports if the version supports the ENFORCED option in CHECK constraint syntax.

func (V) SupportsExprDefault

func (v V) SupportsExprDefault() bool

SupportsExprDefault reports if the version supports expressions in the DEFAULT clause on column definition.

func (V) SupportsGeneratedColumns

func (v V) SupportsGeneratedColumns() bool

SupportsGeneratedColumns reports if the version supports the generated columns in information schema.

func (V) SupportsIndexComment

func (v V) SupportsIndexComment() bool

SupportsIndexComment reports if the version supports comments on indexes.

func (V) SupportsIndexExpr

func (v V) SupportsIndexExpr() bool

SupportsIndexExpr reports if the version supports index expressions (functional key part).

func (V) SupportsRenameColumn

func (v V) SupportsRenameColumn() bool

SupportsRenameColumn reports if the version supports the "RENAME COLUMN" clause.

func (V) SupportsViewUsage added in v0.12.1

func (v V) SupportsViewUsage() bool

SupportsViewUsage reports if the version supports querying the VIEW_TABLE_USAGE table.

func (V) TiDB

func (v V) TiDB() bool

TiDB reports if the MySQL version is TiDB.

Jump to

Keyboard shortcuts

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