dialect

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDialect

func RegisterDialect(name string, dialet Dialect)

RegisterDialect 将方言注册进全局字典dialectsMap

Types

type Dialect

type Dialect interface {
	DataType(typ reflect.Value) string
	TableExistSql(tableName string) (string, []interface{})
}

func GetDialect

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

GetDialect 从全局字典dialectsMap获取方言

Jump to

Keyboard shortcuts

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