sqlite

package
v0.0.0-...-9431910 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 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) AddFields

func (b *Backend) AddFields(db *sql.DB, m driver.Model, prevTable *sql.Table, newTable *sql.Table, fields []*sql.Field) error

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) Func

func (b *Backend) Func(fname string, retType reflect.Type) (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) ScanInt

func (b *Backend) ScanInt(val int64, 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