@@ -3,11 +3,6 @@ package query
33import (
44 "context"
55
6- "google.golang.org/grpc"
7-
8- "github.com/ydb-platform/ydb-go-sdk/v3/internal/params"
9- "github.com/ydb-platform/ydb-go-sdk/v3/internal/query/options"
10- "github.com/ydb-platform/ydb-go-sdk/v3/internal/query/tx"
116 "github.com/ydb-platform/ydb-go-sdk/v3/internal/stats"
127)
138
@@ -25,54 +20,3 @@ type (
2520 }
2621 Stats = stats.QueryStats
2722)
28-
29- const (
30- SyntaxYQL = options .SyntaxYQL
31- SyntaxPostgreSQL = options .SyntaxPostgreSQL
32- )
33-
34- const (
35- ExecModeParse = options .ExecModeParse
36- ExecModeValidate = options .ExecModeValidate
37- ExecModeExplain = options .ExecModeExplain
38- ExecModeExecute = options .ExecModeExecute
39- )
40-
41- const (
42- StatsModeBasic = options .StatsModeBasic
43- StatsModeNone = options .StatsModeNone
44- StatsModeFull = options .StatsModeFull
45- StatsModeProfile = options .StatsModeProfile
46- )
47-
48- func WithParameters (parameters * params.Parameters ) options.Execute {
49- return options .WithParameters (parameters )
50- }
51-
52- func WithTxControl (txControl * tx.Control ) options.Execute {
53- return options .WithTxControl (txControl )
54- }
55-
56- func WithTxSettings (txSettings tx.Settings ) options.DoTxOption {
57- return options .WithTxSettings (txSettings )
58- }
59-
60- func WithCommit () options.Execute {
61- return options .WithCommit ()
62- }
63-
64- func WithExecMode (mode options.ExecMode ) options.Execute {
65- return options .WithExecMode (mode )
66- }
67-
68- func WithSyntax (syntax options.Syntax ) options.Execute {
69- return options .WithSyntax (syntax )
70- }
71-
72- func WithStatsMode (mode options.StatsMode , callback func (Stats )) options.Execute {
73- return options .WithStatsMode (mode , callback )
74- }
75-
76- func WithCallOptions (opts ... grpc.CallOption ) options.Execute {
77- return options .WithCallOptions (opts ... )
78- }
0 commit comments