db

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQLDriverName      = "mysql"
	SQLiteDriverName     = "sqlite3"
	PostgreSQLDriverName = "postgres"
)

Variables

This section is empty.

Functions

func Resolve

func Resolve(driver, storageAddress, storageReadOnlyAddress string) (name string, rw *gorm.DB, ro *gorm.DB, err error)

Resolve takes in connection criteria and returns the appropriate driver.

func StatementsFor

func StatementsFor(driver, version string) *core.Statements

StatementsFor uses the provided information to lookup statements for the driver.

func ToSQLX

func ToSQLX(name string, gormDB *gorm.DB) (*sqlx.DB, error)

ToSQLX converts the provided gorm db to a SQLX one.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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