database

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorFailedToCheckRecord = fmt.Errorf("failed to check record")
	ErrorRecordWasNotFound   = fmt.Errorf("record was not found")
	ErrorNoAffected          = fmt.Errorf("no affected")
	ErrorNoLastInsertId      = fmt.Errorf("no last insert id")
)

Functions

func FormatDSN

func FormatDSN(cfgdb config.Database) string

func New

func New(cfgdb config.Database) (*sql.DB, error)

func NewMigrate

func NewMigrate(src, dest string) (m *migrate.Migrate, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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