Move comment from UpdateBuilder.Exec to UpdateBuilder.ExecContext
This commit is contained in:
parent
26a0aaaf27
commit
f799533201
|
@ -186,12 +186,12 @@ func (b *UpdateBuilder) ToSql() (string, []interface{}) {
|
|||
return sql.String(), args
|
||||
}
|
||||
|
||||
// Exec executes the statement represented by the UpdateBuilder
|
||||
// It returns the raw database/sql Result and an error if there was one
|
||||
func (b *UpdateBuilder) Exec() (sql.Result, error) {
|
||||
return b.ExecContext(context.Background())
|
||||
}
|
||||
|
||||
// Exec executes the statement represented by the UpdateBuilder
|
||||
// It returns the raw database/sql Result and an error if there was one
|
||||
func (b *UpdateBuilder) ExecContext(ctx context.Context) (sql.Result, error) {
|
||||
sql, args := b.ToSql()
|
||||
|
||||
|
|
Loading…
Reference in New Issue