feat: add yaml config support

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

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()
}