sqltransactioncheck

command module
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

README

sqltransactioncheck

sqltransactioncheck 用于检测公司代码事务是否提交

开发调试 go run main.go ./testdata/trans

集成环境运行 /Users/xxxx/xxxx/golangci-lint-1.55.2/golangci-lint run ./testdata/trans

#demo

tm := dbutil.NewTransaction() tm.SetCommitFlag(true) //tm.RollbackIfNotCommit()

/Users/xxxx/sqltransactioncheck/testdata/trans/gorm.go:14:8: SQL Transaction(commit|rollback) was not submited warning exit status 3

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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