sql_db_hdl

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger interface {
	Error(arg ...any)
}

Functions

func InitDB

func InitDB(ctx context.Context, db *sql.DB, schemaPath string, delay, timeout time.Duration, migrations ...Migration) error

Types

type Migration

type Migration interface {
	Required(ctx context.Context, db *sql.DB, timeout time.Duration) (bool, error)
	Run(ctx context.Context, db *sql.DB, timeout time.Duration) error
}

Jump to

Keyboard shortcuts

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