dbdriver

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dbdriver centralizes database driver names, aliases, and small classification helpers used across sqio.

Index

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

func DefaultPort(driver string) int

DefaultPort returns the conventional TCP port for networked database drivers.

func FamilyName

func FamilyName(driver string) string

FamilyName returns the user-facing family name used in diagnostics.

func IsClickHouse

func IsClickHouse(driver string) bool

func IsMySQLFamily

func IsMySQLFamily(driver string) bool

func IsPostgresFamily

func IsPostgresFamily(driver string) bool

func IsSQLServer

func IsSQLServer(driver string) bool

func IsSQLite

func IsSQLite(driver string) bool

func Normalize

func Normalize(driver string) (string, bool)

Normalize maps user-facing driver aliases onto database/sql driver names.

func Supported

func Supported(driver string) bool

Supported reports whether driver is one of sqio's accepted driver names or aliases.

Types

This section is empty.

Jump to

Keyboard shortcuts

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