Skip to content

Commit

Permalink
feat(依赖): 升级gox到0.5.6版本
Browse files Browse the repository at this point in the history
  • Loading branch information
storezhang committed Aug 18, 2024
1 parent 4823213 commit 845c531
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
17 changes: 9 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/pangum/db

go 1.22
go 1.23

require (
github.com/elliotchance/sshtunnel v1.6.1
github.com/goexl/exception v0.0.1
github.com/goexl/gox v0.5.2
github.com/goexl/gox v0.6.2
github.com/goexl/log v0.0.7
github.com/pangum/pangu v0.5.1
github.com/pangum/pangu v0.5.6
golang.org/x/crypto v0.26.0
xorm.io/core v0.7.3
xorm.io/xorm v1.3.9
Expand All @@ -17,7 +17,7 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/drone/envsubst v1.0.3 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.22.0 // indirect
Expand All @@ -39,13 +39,14 @@ require (
github.com/rivo/uniseg v0.4.7 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/storezhang/dig v0.0.1 // indirect
github.com/syndtr/goleveldb v1.0.0 // indirect
github.com/urfave/cli/v2 v2.27.2 // indirect
github.com/urfave/cli/v2 v2.27.4 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
github.com/zs5460/art v0.3.0 // indirect
go.uber.org/dig v1.17.1 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/sys v0.23.0 // indirect
go.uber.org/dig v1.18.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
xorm.io/builder v0.3.13 // indirect
Expand Down
3 changes: 2 additions & 1 deletion internal/db/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ import (

type Engine struct {
*xorm.Engine
gox.CannotCopy

_ gox.Pointerized
}
3 changes: 2 additions & 1 deletion internal/db/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ import (
// Session 事务
type Session struct {
*xorm.Session
gox.CannotCopy

_ gox.Pointerized
}
4 changes: 2 additions & 2 deletions internal/db/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
)

type Synchronizer struct {
gox.CannotCopy

engine *Engine
config *config.DB
logger log.Logger

_ gox.Pointerized
}

func NewSynchronizer(engine *Engine, config *config.DB, logger log.Logger) *Synchronizer {
Expand Down
4 changes: 2 additions & 2 deletions internal/db/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
)

type Transaction struct {
gox.CannotCopy

engine *Engine
logger log.Logger

_ gox.Pointerized
}

func NewTransaction(engine *Engine, logger log.Logger) *Transaction {
Expand Down

0 comments on commit 845c531

Please sign in to comment.