Add UPDATE statement wiki page.
This commit is contained in:
parent
5f678a7e82
commit
3d38946eda
4 changed files with 124 additions and 18 deletions
|
|
@ -170,7 +170,7 @@ func TestUpdateWithModelData(t *testing.T) {
|
|||
|
||||
stmt := Link.
|
||||
UPDATE(Link.AllColumns).
|
||||
USING(link).
|
||||
MODEL(link).
|
||||
WHERE(Link.ID.EQ(Int(int64(link.ID))))
|
||||
|
||||
expectedSql := `
|
||||
|
|
@ -197,7 +197,7 @@ func TestUpdateWithModelDataAndPredefinedColumnList(t *testing.T) {
|
|||
|
||||
stmt := Link.
|
||||
UPDATE(updateColumnList).
|
||||
USING(link).
|
||||
MODEL(link).
|
||||
WHERE(Link.ID.EQ(Int(int64(link.ID))))
|
||||
|
||||
var expectedSql = `
|
||||
|
|
@ -233,7 +233,7 @@ func TestUpdateWithInvalidModelData(t *testing.T) {
|
|||
|
||||
stmt := Link.
|
||||
UPDATE(Link.AllColumns).
|
||||
USING(link).
|
||||
MODEL(link).
|
||||
WHERE(Link.ID.EQ(Int(int64(link.Ident))))
|
||||
|
||||
var expectedSql = `
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue