mirror of
https://github.com/hanzoai/sqlbuilder.git
synced 2026-10-01 00:37:42 +00:00
SetAppend -> SetMore
This commit is contained in:
@@ -47,8 +47,8 @@ func (ub *UpdateBuilder) Set(assignment ...string) *UpdateBuilder {
|
||||
return ub
|
||||
}
|
||||
|
||||
// SetAppend appends the assignements in SET.
|
||||
func (ub *UpdateBuilder) SetAppend(assignment ...string) *UpdateBuilder {
|
||||
// SetMore appends the assignements in SET.
|
||||
func (ub *UpdateBuilder) SetMore(assignment ...string) *UpdateBuilder {
|
||||
ub.assignments = append(ub.assignments, assignment...)
|
||||
return ub
|
||||
}
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ func TestUpdateBuilder_SetAppend(t *testing.T) {
|
||||
ub.Assign("a", 1),
|
||||
ub.Assign("b", 2),
|
||||
)
|
||||
ub.SetAppend(
|
||||
ub.SetMore(
|
||||
ub.Assign("c", 3),
|
||||
ub.Incr("d"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user