Changeset 0.24.2 (#158)
This commit is contained in:
@@ -97,6 +97,11 @@ func (b *UpdateBuilder) Set(col string, val interface{}) *UpdateBuilder {
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *UpdateBuilder) SetNull(col string) *UpdateBuilder {
|
||||
b.sets = append(b.sets, col+" = NULL")
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *UpdateBuilder) SetJSON(col string, val interface{}) *UpdateBuilder {
|
||||
data, err := json.Marshal(val)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user