gorm

package module
v0.0.0-...-9f4a35c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2017 License: MIT Imports: 9 Imported by: 0

README

mysql

mysql driver for ngorm

Code taken from gorm, modified for use with ngorm.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mysql

type Mysql struct {
	common.Dialect
}

func (Mysql) BuildForeignKeyName

func (s Mysql) BuildForeignKeyName(tableName, field, dest string) string

func (Mysql) CurrentDatabase

func (s Mysql) CurrentDatabase() (name string)

func (Mysql) DataTypeOf

func (Mysql) DataTypeOf(field *model.StructField) (string, error)

Get Data Type for MySQL Dialect

func (Mysql) GetName

func (Mysql) GetName() string

func (Mysql) HasForeignKey

func (s Mysql) HasForeignKey(tableName string, foreignKeyName string) bool

func (Mysql) Quote

func (Mysql) Quote(key string) string

func (Mysql) RemoveIndex

func (s Mysql) RemoveIndex(tableName string, indexName string) error

func (Mysql) SelectFromDummyTable

func (Mysql) SelectFromDummyTable() string

Jump to

Keyboard shortcuts

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