db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DBList = "comList"

Variables

View Source
var (
	ErrNoDB       = errors.New("db not set")
	ErrDBListType = errors.New("ErrDBListType")
)

Functions

func Command

func Command(ctx context.Context, handler CommandHandler)

func SetGorm

func SetGorm(setDB *gorm.DB)

func WriteWithContext

func WriteWithContext(ctx context.Context) error

Types

type CommandHandler

type CommandHandler func(db *gorm.DB) error

Jump to

Keyboard shortcuts

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