repository

package
v0.0.0-...-1f0604f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryxContext(context.Context, string, ...interface{}) (*sqlx.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
	QueryRowxContext(context.Context, string, ...interface{}) *sqlx.Row
}

type DataStore

type DataStore interface {
	Atomic(ctx context.Context, fn func(DataStore) error) error
}

func NewDataStore

func NewDataStore(db *sqlx.DB) DataStore

Jump to

Keyboard shortcuts

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