atlasariga.io/atlas/sql/mysql/internal/mysqlversion Index | Files

package mysqlversion

import "ariga.io/atlas/sql/mysql/internal/mysqlversion"

Index

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

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.

Source Files

mysqlversion.go

Version
v0.32.0 (latest)
Published
Mar 10, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
1 month ago

Tools for package owners.