mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 12:47:50 +08:00
24 lines
699 B
Go
24 lines
699 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"
|
|
|
|
"github.com/gogf/gf/v2/database/gdb"
|
|
)
|
|
|
|
// Begin starts and returns the transaction object.
|
|
func (d *Driver) Begin(ctx context.Context) (tx gdb.TX, err error) {
|
|
return nil, errUnsupportedBegin
|
|
}
|
|
|
|
// Transaction wraps the transaction logic using function `f`.
|
|
func (d *Driver) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) error {
|
|
return errUnsupportedTransaction
|
|
}
|