drivers

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect added in v0.9.3

func Connect(cfg DatabaseConfig) (model.Driver, error)

Connect connects to the database.

func OpenDialect added in v0.9.3

func OpenDialect(dbType, dbDSN string) model.Driver

OpenDialect opens a database driver.

Types

type DatabaseConfig added in v0.9.3

type DatabaseConfig struct {
	Type    string
	DSN     string
	LogFile string
}

DatabaseConfig is the configuration for the database.

func LoadConfig added in v0.9.3

func LoadConfig(env *utils.Environ, defaultDSN string) DatabaseConfig

LoadConfig loads the database configuration from the environment.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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