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 @@ -19,6 +19,7 @@ require (
19
19
github.com/gofrs/uuid v3.2.0+incompatible
20
20
github.com/gookit/color v1.3.1
21
21
github.com/huaweicloud/huaweicloud-sdk-go-obs v3.21.8+incompatible
22
+ github.com/jackc/pgx/v4 v4.15.0 // indirect
22
23
github.com/jordan-wright/email v0.0.0-20200824153738-3f5bafa1cd84
23
24
github.com/mojocn/base64Captcha v1.3.1
24
25
github.com/natefinch/lumberjack v2.0.0+incompatible
@@ -37,10 +38,11 @@ require (
37
38
github.com/unrolled/secure v1.0.7
38
39
github.com/xuri/excelize/v2 v2.4.1
39
40
go.uber.org/zap v1.16.0
41
+ golang.org/x/crypto v0.0.0-20220213190939-1e6e3497d506 // indirect
40
42
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
41
43
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
42
44
gorm.io/driver/mysql v1.0.1
43
- gorm.io/driver/postgres v0 .2.6
44
- gorm.io/gorm v1.20.11
45
+ gorm.io/driver/postgres v1 .2.3
46
+ gorm.io/gorm v1.22.5
45
47
nhooyr.io/websocket v1.8.6
46
48
)
You can’t perform that action at this time.
0 commit comments