driver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameMySQL            = "mysql"
	NamePostgreSQL       = "postgresql"
	NamePostgreSQLSimple = "postgresql.simple"
	NameSQLite           = "sqlite"
	NameSQLServer        = "sqlserver"
	NameClickhouse       = "clickhouse"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {

	// Open return GORM database dialector
	Open(dsn string) gorm.Dialector
}

Driver database driver

func Get

func Get(name string) (Driver, bool)

Get database driver

Jump to

Keyboard shortcuts

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