Documentation ¶
Index ¶
- type V
- func (v V) CharsetToCollate(conn schema.ExecQuerier) (map[string]string, error)
- func (v V) CollateToCharset(conn schema.ExecQuerier) (map[string]string, error)
- func (v V) Compare(w string) int
- func (v V) GTE(w string) bool
- func (v V) LT(w string) bool
- func (v V) Maria() bool
- func (v V) SupportsCheck() bool
- func (v V) SupportsDisplayWidth() bool
- func (v V) SupportsEnforceCheck() bool
- func (v V) SupportsExprDefault() bool
- func (v V) SupportsGeneratedColumns() bool
- func (v V) SupportsIndexComment() bool
- func (v V) SupportsIndexExpr() bool
- func (v V) SupportsRenameColumn() bool
- func (v V) SupportsViewUsage() bool
- func (v V) TiDB() bool
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 ¶
CharsetToCollate returns the mapping from charset to its default collation.
func (V) CollateToCharset ¶
CollateToCharset returns the mapping from a collation to its charset.
func (V) Compare ¶
Compare returns an integer comparing two versions according to semantic version precedence.
func (V) SupportsCheck ¶
SupportsCheck reports if the version supports the CHECK clause, and return the querying for getting them.
func (V) SupportsDisplayWidth ¶
SupportsDisplayWidth reports if the version supports getting the display width information from the information schema.
func (V) SupportsEnforceCheck ¶
SupportsEnforceCheck reports if the version supports the ENFORCED option in CHECK constraint syntax.
func (V) SupportsExprDefault ¶
SupportsExprDefault reports if the version supports expressions in the DEFAULT clause on column definition.
func (V) SupportsGeneratedColumns ¶
SupportsGeneratedColumns reports if the version supports the generated columns in information schema.
func (V) SupportsIndexComment ¶
SupportsIndexComment reports if the version supports comments on indexes.
func (V) SupportsIndexExpr ¶
SupportsIndexExpr reports if the version supports index expressions (functional key part).
func (V) SupportsRenameColumn ¶
SupportsRenameColumn reports if the version supports the "RENAME COLUMN" clause.
func (V) SupportsViewUsage ¶
SupportsViewUsage reports if the version supports querying the VIEW_TABLE_USAGE table.