mysql

package
v0.0.0-...-b75375f Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2014 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	sql.SqlBackend
}

func (*Backend) AlterField

func (b *Backend) AlterField(db *sql.DB, m driver.Model, table *sql.Table, oldField *sql.Field, newField *sql.Field) error

func (*Backend) Capabilities

func (b *Backend) Capabilities() driver.Capability

func (*Backend) DefaultValues

func (b *Backend) DefaultValues() string

func (*Backend) DefineField

func (b *Backend) DefineField(db *sql.DB, m driver.Model, table *sql.Table, field *sql.Field) (string, []string, error)

func (*Backend) FieldType

func (b *Backend) FieldType(typ reflect.Type, t *structs.Tag) (string, error)

func (*Backend) HasIndex

func (b *Backend) HasIndex(db *sql.DB, m driver.Model, idx *index.Index, name string) (bool, error)

func (*Backend) Inspect

func (b *Backend) Inspect(db *sql.DB, m driver.Model) (*sql.Table, error)

func (*Backend) Name

func (b *Backend) Name() string

func (*Backend) ScanByteSlice

func (b *Backend) ScanByteSlice(val []byte, goVal *reflect.Value, t *structs.Tag) error

func (*Backend) ScanTime

func (b *Backend) ScanTime(val *time.Time, goVal *reflect.Value, t *structs.Tag) error

func (*Backend) Tag

func (b *Backend) Tag() string

func (*Backend) TransformOutValue

func (b *Backend) TransformOutValue(val reflect.Value) (interface{}, error)

func (*Backend) Transforms

func (b *Backend) Transforms() []reflect.Type

Jump to

Keyboard shortcuts

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