Skip to content

Commit 0aa1283

Browse files
committed
feat: Initialize gormplus db
1 parent f8d04a2 commit 0aa1283

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

gormplus/gormplus.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package gormplus
2+
3+
import (
4+
"github.com/zouchangfu/gorm-plus/mapper"
5+
"gorm.io/gorm"
6+
)
7+
8+
func Init(db *gorm.DB) {
9+
mapper.GormDb = db
10+
}

0 commit comments

Comments
 (0)