Add database driver and config module

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-19 17:38:51 +08:00
parent e2345a8d4a
commit dc128c0392
11 changed files with 196 additions and 7 deletions

16
data/drivers/types.go Normal file
View 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
}