datastore

package
v0.0.0-...-d557dfe Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Batch

func Batch[T any](fn func(qry string, args any) (sql.Result, error), qry string, args []T, size int, name string) error

func BatchIn

func BatchIn[T comparable](tx *sqlx.Tx, qry string, args []T, size int, name string) error

func Get

func Get() *sqlx.DB

func InitLogger

func InitLogger(create bool)

func New

func New(dsn string, allowCreate bool, logEnabled bool) *sqlx.DB

func NewLogger

func NewLogger() sqldblogger.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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