Documentation
¶
Overview ¶
Package dbdriver centralizes database driver names, aliases, and small classification helpers used across sqio.
Index ¶
- Constants
- func DefaultPort(driver string) int
- func FamilyName(driver string) string
- func IsClickHouse(driver string) bool
- func IsMySQLFamily(driver string) bool
- func IsPostgresFamily(driver string) bool
- func IsSQLServer(driver string) bool
- func IsSQLite(driver string) bool
- func Normalize(driver string) (string, bool)
- func Supported(driver string) bool
Constants ¶
View Source
const ( DriverSQLite = "sqlite" DriverSQLite3 = "sqlite3" DriverDuckDB = "duckdb" DriverPostgres = "postgres" DriverPostgreSQL = "postgresql" DriverPGX = "pgx" DriverCockroach = "cockroach" DriverCockroachDB = "cockroachdb" DriverMySQL = "mysql" DriverMariaDB = "mariadb" DriverTiDB = "tidb" DriverSQLServer = "sqlserver" DriverMSSQL = "mssql" DriverOracle = "oracle" DriverClickHouse = "clickhouse" DriverCH = "ch" )
Variables ¶
This section is empty.
Functions ¶
func DefaultPort ¶
DefaultPort returns the conventional TCP port for networked database drivers.
func FamilyName ¶
FamilyName returns the user-facing family name used in diagnostics.
func IsClickHouse ¶
func IsMySQLFamily ¶
func IsPostgresFamily ¶
func IsSQLServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.