dialect

package
v0.1.1 Latest Latest
Warning

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

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

RegisterDialect 注册 Dialect 实例

Types

type Dialect

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

func GetDialect

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

GetDialect 获取 Dialect 实例

Jump to

Keyboard shortcuts

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