File tree Expand file tree Collapse file tree 5 files changed +87
-6
lines changed Expand file tree Collapse file tree 5 files changed +87
-6
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,7 @@ type Mysql struct {
16
16
func (m * Mysql ) Dsn () string {
17
17
return m .Username + ":" + m .Password + "@tcp(" + m .Path + ":" + m .Port + ")/" + m .Dbname + "?" + m .Config
18
18
}
19
+
20
+ func (m * Mysql ) GetLogMode () string {
21
+ return m .LogMode
22
+ }
Original file line number Diff line number Diff line change @@ -24,3 +24,7 @@ func (p *Pgsql) Dsn() string {
24
24
func (p * Pgsql ) LinkDsn (dbname string ) string {
25
25
return "host=" + p .Path + " user=" + p .Username + " password=" + p .Password + " dbname=" + dbname + " port=" + p .Port + " " + p .Config
26
26
}
27
+
28
+ func (m * Pgsql ) GetLogMode () string {
29
+ return m .LogMode
30
+ }
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ require (
18
18
github.com/go-sql-driver/mysql v1.5.0
19
19
github.com/gookit/color v1.3.1
20
20
github.com/huaweicloud/huaweicloud-sdk-go-obs v3.21.8+incompatible
21
+ github.com/jackc/pgx/v4 v4.15.0 // indirect
21
22
github.com/jordan-wright/email v0.0.0-20200824153738-3f5bafa1cd84
22
23
github.com/mojocn/base64Captcha v1.3.1
23
24
github.com/natefinch/lumberjack v2.0.0+incompatible
@@ -36,10 +37,11 @@ require (
36
37
github.com/unrolled/secure v1.0.7
37
38
github.com/xuri/excelize/v2 v2.4.1
38
39
go.uber.org/zap v1.16.0
40
+ golang.org/x/crypto v0.0.0-20220213190939-1e6e3497d506 // indirect
39
41
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
40
42
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
41
43
gorm.io/driver/mysql v1.0.1
42
- gorm.io/driver/postgres v0 .2.6
43
- gorm.io/gorm v1.20.11
44
+ gorm.io/driver/postgres v1 .2.3
45
+ gorm.io/gorm v1.22.5
44
46
nhooyr.io/websocket v1.8.6
45
47
)
You can’t perform that action at this time.
0 commit comments