sql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver string
const (
	DriverPostgres Driver = "postgres"
	DriverMySQL    Driver = "mysql"
)

func (Driver) String

func (d Driver) String() string

type Options

type Options struct {
	DSN             string
	MaxIdleConn     int
	MaxOpenConn     int
	ConnMaxLifetime time.Duration
}

type SQL

type SQL struct {
	DB *sqlx.DB
}

func New

func New(driver Driver, opt *Options) (*SQL, error)

Jump to

Keyboard shortcuts

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