query:=fmt.Sprintf("update %s set %s where {{.originalPrimaryKey}} = {{if .postgreSql}}$1{{else}}?{{end}}",m.table,{{.lowerStartCamelObject}}RowsWithPlaceHolder)
query:=fmt.Sprintf("update %s set %s where {{.originalPrimaryKey}} = {{if .postgreSql}}$1{{else}}?{{end}}",m.table,{{.lowerStartCamelObject}}RowsWithPlaceHolder)
},{{.keyValues}}){{else}}query:=fmt.Sprintf("update %s set %s where {{.originalPrimaryKey}} = {{if .postgreSql}}$1{{else}}?{{end}}",m.table,{{.lowerStartCamelObject}}RowsWithPlaceHolder)
},{{.keyValues}}){{else}}query:=fmt.Sprintf("update %s set %s where {{.originalPrimaryKey}} = {{if .postgreSql}}$1{{else}}?{{end}}",m.table,{{.lowerStartCamelObject}}RowsWithPlaceHolder)
@ -15,5 +20,5 @@ func (m *default{{.upperStartCamelObject}}Model) Update(ctx context.Context, dat
`
`
// UpdateMethod defines an interface method template for generating update codes
// UpdateMethod defines an interface method template for generating update codes
UpdateMethod=`Update(ctx context.Context, data *{{.upperStartCamelObject}}) error`