dbutils

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 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 MetaDB

type MetaDB interface {
	Set(ctx context.Context, key string, val any) error
	GetString(ctx context.Context, key string) (out string, err error)
	GetInt64(ctx context.Context, key string) (int64, error)
	GetUint64(ctx context.Context, key string) (uint64, error)
}

func NewMetaDB

func NewMetaDB(sdb *sqlx.DB) (MetaDB, error)

func NewMetaDBMemory added in v1.23.0

func NewMetaDBMemory() (MetaDB, error)

NewMetaDBMemory creates a new MetaDB instance with in-memory storage. This is useful for testing purposes or when you don't need persistent storage.

Jump to

Keyboard shortcuts

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