Documentation ¶
Index ¶
Constants ¶
View Source
const ( DRIVER_NAME_MYSQL = "mysql" DRIVER_NAME_SQLITE3 = "sqlite3" DRIVER_NAME_POSTGRESQL = "postgresql" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dialect ¶
type Dialect interface { // GetDriverName gets the driver name of the DB GetDriverName() string // GetDataTypeOf gets a datatype for a DB Dialect GetDataTypeOf(typ reflect.Value) string // GetTableExistSQL returns SQL that judge whether the table exists in database GetTableExistSQL(dbName, tabName string) (string, []any) }
Dialect is an interface contains methods that a dialect has to implement
Click to show internal directories.
Click to hide internal directories.