dialect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDialect

func RegisterDialect(name string, dialect Dialect)

Types

type Dialect

type Dialect interface {
	// 用于将Go语言的类型转换为该数据库的数据类型
	DataTypeOf(typ reflect.Value) string
	//返回某个表是否存在的SQL语句,参数是表名(table)
	TableExistSQL(tableName string) (string, []interface{})
}

func GetDialect

func GetDialect(name string) (dialect Dialect, ok bool)

Jump to

Keyboard shortcuts

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