support insert()values() ON DUPLICATE KEY UPDATE ..... #70

Open
opened 2020-02-20 04:38:22 +00:00 by RelicOfTesla · 1 comment
maybe add help method "AfterExpr/AfterSql/SuffixSql"?

b := builder.Insert(builder.Eq{"a": "b"}).Into("tbl").AfterExpr("ON DUPLICATE KEY UPDATE aa=?,bb=?,cc=?", builder.Eq{...})

fmt.Println(b.ToSql())

``` maybe add help method "AfterExpr/AfterSql/SuffixSql"? b := builder.Insert(builder.Eq{"a": "b"}).Into("tbl").AfterExpr("ON DUPLICATE KEY UPDATE aa=?,bb=?,cc=?", builder.Eq{...}) fmt.Println(b.ToSql()) ```
Owner

Maybe we could name it Prefix() and Suffix?

Maybe we could name it `Prefix()` and `Suffix`?
lunny added the
feature
label 2020-02-20 04:46:24 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/builder#70
No description provided.