mysqldialect

package module
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: BSD-2-Clause Imports: 13 Imported by: 62

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version added in v1.0.22

func Version() string

Version is the current release version.

Types

type Dialect

type Dialect struct {
	schema.BaseDialect
	// contains filtered or unexported fields
}

func New

func New(opts ...DialectOption) *Dialect

func (*Dialect) AppendBytes added in v1.0.14

func (*Dialect) AppendBytes(b []byte, bs []byte) []byte

func (*Dialect) AppendJSON added in v1.0.14

func (*Dialect) AppendJSON(b, jsonb []byte) []byte

func (*Dialect) AppendSequence added in v1.1.17

func (d *Dialect) AppendSequence(b []byte, _ *schema.Table, _ *schema.Field) []byte

func (*Dialect) AppendString added in v1.0.17

func (*Dialect) AppendString(b []byte, s string) []byte

func (*Dialect) AppendTime added in v1.0.10

func (d *Dialect) AppendTime(b []byte, tm time.Time) []byte

func (*Dialect) DefaultSchema added in v1.2.6

func (d *Dialect) DefaultSchema() string

func (*Dialect) DefaultVarcharLen added in v1.1.10

func (d *Dialect) DefaultVarcharLen() int

func (*Dialect) Features

func (d *Dialect) Features() feature.Feature

func (*Dialect) IdentQuote

func (d *Dialect) IdentQuote() byte

func (*Dialect) Init added in v0.2.14

func (d *Dialect) Init(db *sql.DB)

func (*Dialect) Name

func (d *Dialect) Name() dialect.Name

func (*Dialect) OnTable

func (d *Dialect) OnTable(table *schema.Table)

func (*Dialect) Tables

func (d *Dialect) Tables() *schema.Tables

type DialectOption added in v1.2.5

type DialectOption func(d *Dialect)

func WithTimeLocation added in v1.2.5

func WithTimeLocation(loc string) DialectOption

func WithoutFeature added in v1.2.7

func WithoutFeature(other feature.Feature) DialectOption

Jump to

Keyboard shortcuts

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