add context feature for package gdb

This commit is contained in:
John
2020-11-29 23:54:38 +08:00
parent 3419d66c4b
commit 6f93bd17f2

View File

@ -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