Skip to content

Commit ba635fc

Browse files
committed
update db driver
1 parent dacd77a commit ba635fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sql/types.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import (
66
"gorm.io/gorm/logger"
77
)
88

9-
type Driver int
10-
119
// Drivers ...
1210
const (
13-
Sqlite Driver = iota
11+
Sqlite = iota
1412
Postgres
1513
MySQL
1614
)
@@ -25,7 +23,7 @@ const (
2523

2624
// Database configuration
2725
type Config struct {
28-
Driver Driver
26+
Driver int
2927
Url string
3028
LogLevel logger.LogLevel
3129
MaxIdleConns int

0 commit comments

Comments
 (0)