mysqlrym

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCacheKeyToAdd added in v0.2.31

func AddCacheKeyToAdd(keys ...string)

AddCacheKeyToAdd 添加需要清理的缓存键到当前线程

func Commit

func Commit()

func DealTransaction added in v0.2.16

func DealTransaction(fc func()) (txErr error)

DealTransaction 进行事务处理。注意使用此方法时需要检测内部的dao使用的是不是mysql.GetMyDb()

func GetDb

func GetDb() *gorm.DB

func Init

func Init()

func Rollback

func Rollback()

func SetTx

func SetTx()

Types

This section is empty.

Jump to

Keyboard shortcuts

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