forked from nixcn/nixcn-cms
Add database driver and config module
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
16
data/drivers/types.go
Normal file
16
data/drivers/types.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package drivers
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ExternalDSN struct {
|
||||
Host string
|
||||
Name string
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
|
||||
type DBClient struct {
|
||||
*gorm.DB
|
||||
}
|
||||
Reference in New Issue
Block a user