repo

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBRepo

type DBRepo struct {
	// contains filtered or unexported fields
}

func NewDBRepo

func NewDBRepo(db *sql.DB, timeout time.Duration, retries int) *DBRepo

func (*DBRepo) Exec

func (r *DBRepo) Exec(query string, args ...any) (taken time.Duration, err error)

func (*DBRepo) Query

func (r *DBRepo) Query(query string, args ...any) (values []map[string]any, taken time.Duration, err error)

type Queryer

type Queryer interface {
	Query(query string, args ...any) ([]map[string]any, time.Duration, error)
	Exec(query string, args ...any) (time.Duration, error)
}

Jump to

Keyboard shortcuts

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