Skip to content

Commit

Permalink
update mod
Browse files Browse the repository at this point in the history
  • Loading branch information
xxjwxc committed May 24, 2023
1 parent 37db353 commit 40b897d
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 158 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ clear:
test ! -f gormt_linux.zip || rm gormt_linux.zip
test ! -f gormt_mac.zip || rm gormt_mac.zip
test ! -f gormt_windows.zip || rm gormt_windows.zip

master:
go get -u github.com/xxjwxc/public@master
go get -u gorm.io/gorm@master
go get -u gorm.io/driver/sqlserver@master
go get -u gorm.io/driver/sqlite@master
2 changes: 1 addition & 1 deletion data/view/model/genmysql/genmysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type mysqlModel struct {

// GenModel get model.DBInfo info.获取数据库相关属性
func (m *mysqlModel) GenModel() model.DBInfo {
orm := mysqldb.OnInitDBOrm(config.GetMysqlConStr())
orm := mysqldb.OnInitDBOrm(config.GetMysqlConStr(), true)
defer orm.OnDestoryDB()

var dbInfo model.DBInfo
Expand Down
43 changes: 33 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,45 @@
module github.com/xxjwxc/gormt

go 1.13
go 1.18

require (
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/jroimartin/gocui v0.4.0
github.com/leodido/go-urn v1.2.0 // indirect
github.com/nicksnyder/go-i18n/v2 v2.0.3
github.com/spf13/cobra v1.0.0
github.com/xxjwxc/public v0.0.0-20210709073023-f6ec6fb9bcb4
golang.org/x/text v0.3.8
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
github.com/xxjwxc/public v0.0.0-20230522110634-c12fa2a731cf
golang.org/x/text v0.9.0
gopkg.in/go-playground/validator.v9 v9.30.2
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
gopkg.in/yaml.v3 v3.0.1
gorm.io/driver/mysql v1.0.1
gorm.io/driver/sqlite v1.1.4
gorm.io/driver/sqlserver v1.0.7
gorm.io/gorm v1.21.4
gorm.io/driver/sqlite v1.5.1
gorm.io/driver/sqlserver v1.5.0
gorm.io/gorm v1.25.2-0.20230521132722-001738be49d2
)

require (
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-sql-driver/mysql v1.5.0 // indirect
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
github.com/gookit/color v1.2.5 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/microsoft/go-mssqldb v0.21.0 // indirect
github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/pflag v1.0.3 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.1.0 // indirect
go.uber.org/zap v1.10.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
)

// replace github.com/xxjwxc/public => ../public
Loading

0 comments on commit 40b897d

Please sign in to comment.