feat: add yaml config support

This commit is contained in:
loveuer committed 2025-03-20 11:55:47 +08:00
1 parent 32b30ae183
commit 2e13671bb7
9 files changed
+139 -145

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func (c *Client) Session(ctxs ...context.Context) *gorm.DB {
session := c.cli.Session(&gorm.Session{Context: ctx})
if opt.Debug {
if opt.Cfg.Debug {
session = session.Debug()
}