forked from mirror/gorm
Add InstantSet for DB
This commit is contained in:
parent
3af077ac46
commit
922395c965
4
main.go
4
main.go
|
@ -392,10 +392,10 @@ func (s *DB) Association(column string) *Association {
|
|||
|
||||
// Set set value by name
|
||||
func (s *DB) Set(name string, value interface{}) *DB {
|
||||
return s.clone().set(name, value)
|
||||
return s.clone().InstantSet(name, value)
|
||||
}
|
||||
|
||||
func (s *DB) set(name string, value interface{}) *DB {
|
||||
func (s *DB) InstantSet(name string, value interface{}) *DB {
|
||||
s.values[name] = value
|
||||
return s
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue