feat: add yaml config support
This commit is contained in:
1 parent
32b30ae183
commit
2e13671bb7
9 files changed
+139
-145
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user