add gdb.Model.Args

This commit is contained in:
John
2020-11-18 00:16:34 +08:00
parent 1a31792c14
commit 7caf7976cf

View File

@ -199,3 +199,10 @@ func (m *Model) Safe(safe ...bool) *Model {
}
return m
}
// Args sets custom arguments for model operation.
func (m *Model) Args(args ...interface{}) *Model {
model := m.getModel()
model.extraArgs = append(model.extraArgs, args)
return model
}