Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeDriverName ¶
NormalizeDriverName maps the Go MySQL driver name "mysql" to "mariadb" so all switch cases can use a single canonical name. Keep Driver() returning "mysql" (actual Go driver) and StringToDXDatabaseType() accepting both "mysql" and "mariadb".
Types ¶
type DXDatabaseType ¶
type DXDatabaseType int64
const ( UnknownDatabaseType DXDatabaseType = iota DXDatabaseTypePostgreSQL DXDatabaseTypeMariaDB DXDatabaseTypeOracle DXDatabaseTypeSQLServer DXDatabaseTypePostgresSQLV2 )
func StringToDXDatabaseType ¶
func StringToDXDatabaseType(v string) DXDatabaseType
func (DXDatabaseType) Driver ¶
func (t DXDatabaseType) Driver() string
func (DXDatabaseType) IsValid ¶
func (t DXDatabaseType) IsValid() bool
func (DXDatabaseType) String ¶
func (t DXDatabaseType) String() string
Click to show internal directories.
Click to hide internal directories.