db

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist = gorm.ErrRecordNotFound

Functions

This section is empty.

Types

type Db

type Db struct {
	DbAddr  string
	Timeout time.Duration

	Run *models.RunModel
	// contains filtered or unexported fields
}

func NewDb

func NewDb(dbAddr string, defaultTimeout time.Duration) (*Db, error)

func (*Db) Init

func (db *Db) Init() error

type DbClient

type DbClient = gorm.DB

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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