base

package
v1.128.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeDriverName

func NormalizeDriverName(driverName string) string

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

Jump to

Keyboard shortcuts

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