sqlite3

package
v0.0.0-...-7203340 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect struct{}

Dialect is code generator for sqlite3 dialect

func (*Dialect) ConvertValueCode

func (d *Dialect) ConvertValueCode(field *load.Field) string

ConvertValueCode returns go code for converting value returned from the database to the given field.

func (*Dialect) GoTypeToColumnType

func (*Dialect) GoTypeToColumnType(goTypeName string, autoIncrement bool) *sqltypes.Type

GoTypeToColumnType translate a name of a Go type to the equivalent SQL column type.

func (*Dialect) Name

func (d *Dialect) Name() string

Name returns the dialect name

func (*Dialect) Quote

func (d *Dialect) Quote(name string) string

Quote returns quotes a variable

func (*Dialect) Translate

func (d *Dialect) Translate(name string) string

Translate translates mysql name to sqlite3 name

func (*Dialect) Var

func (d *Dialect) Var(int) string

Var returns a variable phrase

Jump to

Keyboard shortcuts

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