db

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DriverMySQL      = Driver("mysql")
	DriverPostgresQL = Driver("postgres")
)

Variables

This section is empty.

Functions

func Init

func Init(cfg Config) (*sql.DB, error)

Types

type Config

type Config struct {
	Driver   Driver
	User     string
	Password string
	Port     string
	Host     string
	Name     string
	Options  Options
}

type Driver

type Driver string

type Options

type Options struct {
	SSLMode   string
	ParseTime bool
}

Jump to

Keyboard shortcuts

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