Skip to content

Commit 9ce20de

Browse files
committed
fix
1 parent 830687b commit 9ce20de

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

query/execute_options.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,47 +29,47 @@ const (
2929
StatsModeProfile = options.StatsModeProfile
3030
)
3131

32-
func WithParameters(parameters *params.Parameters) options.Execute {
32+
func WithParameters(parameters *params.Parameters) ExecuteOption {
3333
return options.WithParameters(parameters)
3434
}
3535

36-
func WithTxControl(txControl *tx.Control) options.Execute {
36+
func WithTxControl(txControl *tx.Control) ExecuteOption {
3737
return options.WithTxControl(txControl)
3838
}
3939

4040
func WithTxSettings(txSettings tx.Settings) options.DoTxOption {
4141
return options.WithTxSettings(txSettings)
4242
}
4343

44-
func WithCommit() options.Execute {
44+
func WithCommit() ExecuteOption {
4545
return options.WithCommit()
4646
}
4747

48-
func WithExecMode(mode options.ExecMode) options.Execute {
48+
func WithExecMode(mode options.ExecMode) ExecuteOption {
4949
return options.WithExecMode(mode)
5050
}
5151

52-
func WithSyntax(syntax options.Syntax) options.Execute {
52+
func WithSyntax(syntax options.Syntax) ExecuteOption {
5353
return options.WithSyntax(syntax)
5454
}
5555

56-
func WithStatsMode(mode options.StatsMode, callback func(Stats)) options.Execute {
56+
func WithStatsMode(mode options.StatsMode, callback func(Stats)) ExecuteOption {
5757
return options.WithStatsMode(mode, callback)
5858
}
5959

6060
// WithResponsePartLimitSizeBytes limit size of each part (data portion) in stream for query service resoponse
6161
// it isn't limit total size of answer
62-
func WithResponsePartLimitSizeBytes(size int64) options.Execute {
62+
func WithResponsePartLimitSizeBytes(size int64) ExecuteOption {
6363
return options.WithResponsePartLimitSizeBytes(size)
6464
}
6565

66-
func WithCallOptions(opts ...grpc.CallOption) options.Execute {
66+
func WithCallOptions(opts ...grpc.CallOption) ExecuteOption {
6767
return options.WithCallOptions(opts...)
6868
}
6969

7070
// WithResourcePool is an option for define resource pool for execute query
7171
//
7272
// Read more https://ydb.tech/docs/ru/dev/resource-consumption-management
73-
func WithResourcePool(id string) options.Execute {
73+
func WithResourcePool(id string) ExecuteOption {
7474
return options.WithResourcePool(id)
7575
}

0 commit comments

Comments
 (0)