mirror of
https://gitee.com/johng/gf
synced 2026-07-08 22:40:30 +08:00
add context feature for package gdb
This commit is contained in:
@ -114,7 +114,7 @@ func (tx *TX) Model(table ...string) *Model {
|
||||
return tx.Table(table...)
|
||||
}
|
||||
|
||||
//
|
||||
// Ctx sets the context for current operation.
|
||||
func (m *Model) Ctx(ctx context.Context) *Model {
|
||||
if ctx == nil {
|
||||
return m
|
||||
|
||||
Reference in New Issue
Block a user