dbloader

package
v0.0.0-...-cbd51a7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBLoader

type DBLoader struct {
	StructType reflect.Type
	DB         *sql.DB
	Query      string
}

func NewDBLoader

func NewDBLoader(db *sql.DB, query string, structType any) *DBLoader

func (*DBLoader) Load

func (d *DBLoader) Load(key any, cache loadingcache.Cache) (any, error)

Jump to

Keyboard shortcuts

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