dialect

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverName added in v0.4.2

func DriverName(d Dialect, originalValue string) string

DriverName returns the Go sql driver name to use with sql.Open. originalValue is the raw string passed by the caller; it is preserved for postgres so that "pgx" and "postgres" (lib/pq) remain distinct.

Types

type Dialect

type Dialect string

Dialect is the type of database dialect.

const (
	MySQL    Dialect = "mysql"
	MariaDB  Dialect = "mariadb"
	Postgres Dialect = "postgres"
	SQLite3  Dialect = "sqlite3"
	Unknown  Dialect = ""
)

func FromString

func FromString(dialect string) Dialect

func (Dialect) GooseDialect

func (d Dialect) GooseDialect() database.Dialect

func (Dialect) String

func (d Dialect) String() string

Jump to

Keyboard shortcuts

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