Move comment from UpdateBuilder.Exec to UpdateBuilder.ExecContext

This commit is contained in:
Владислав Весельский 2022-11-24 15:21:14 +03:00
parent 26a0aaaf27
commit f799533201
1 changed files with 2 additions and 2 deletions

View File

@ -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()