mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 12:47:50 +08:00
21 lines
681 B
Go
21 lines
681 B
Go
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://github.com/gogf/gf.
|
|
|
|
package clickhouse
|
|
|
|
import (
|
|
"context"
|
|
"database/sql"
|
|
|
|
"github.com/gogf/gf/v2/database/gdb"
|
|
)
|
|
|
|
// DoUpdate does "UPDATE ... " statement for the table.
|
|
func (d *Driver) DoUpdate(ctx context.Context, link gdb.Link, table string, data interface{}, condition string, args ...interface{}) (result sql.Result, err error) {
|
|
ctx = d.injectNeedParsedSql(ctx)
|
|
return d.Core.DoUpdate(ctx, link, table, data, condition, args...)
|
|
}
|