@@ -5,48 +5,114 @@ import "time"
5
5
type Connector interface {
6
6
ConnectedNow () bool
7
7
Close () error
8
- Ping () (resp * Response , err error )
9
8
ConfiguredTimeout () time.Duration
9
+ NewPrepared (expr string ) (* Prepared , error )
10
+ NewStream () (* Stream , error )
11
+ NewWatcher (key string , callback WatchCallback ) (Watcher , error )
12
+ Do (req Request ) (fut * Future )
10
13
14
+ // Deprecated: the method will be removed in the next major version,
15
+ // use a PingRequest object + Do() instead.
16
+ Ping () (resp * Response , err error )
17
+ // Deprecated: the method will be removed in the next major version,
18
+ // use a SelectRequest object + Do() instead.
11
19
Select (space , index interface {}, offset , limit uint32 , iterator Iter , key interface {}) (resp * Response , err error )
20
+ // Deprecated: the method will be removed in the next major version,
21
+ // use an InsertRequest object + Do() instead.
12
22
Insert (space interface {}, tuple interface {}) (resp * Response , err error )
23
+ // Deprecated: the method will be removed in the next major version,
24
+ // use a ReplicaRequest object + Do() instead.
13
25
Replace (space interface {}, tuple interface {}) (resp * Response , err error )
26
+ // Deprecated: the method will be removed in the next major version,
27
+ // use a DeleteRequest object + Do() instead.
14
28
Delete (space , index interface {}, key interface {}) (resp * Response , err error )
29
+ // Deprecated: the method will be removed in the next major version,
30
+ // use a UpdateRequest object + Do() instead.
15
31
Update (space , index interface {}, key , ops interface {}) (resp * Response , err error )
32
+ // Deprecated: the method will be removed in the next major version,
33
+ // use a UpsertRequest object + Do() instead.
16
34
Upsert (space interface {}, tuple , ops interface {}) (resp * Response , err error )
35
+ // Deprecated: the method will be removed in the next major version,
36
+ // use a CallRequest object + Do() instead.
17
37
Call (functionName string , args interface {}) (resp * Response , err error )
38
+ // Deprecated: the method will be removed in the next major version,
39
+ // use a Call16Request object + Do() instead.
18
40
Call16 (functionName string , args interface {}) (resp * Response , err error )
41
+ // Deprecated: the method will be removed in the next major version,
42
+ // use a Call17Request object + Do() instead.
19
43
Call17 (functionName string , args interface {}) (resp * Response , err error )
44
+ // Deprecated: the method will be removed in the next major version,
45
+ // use an EvalRequest object + Do() instead.
20
46
Eval (expr string , args interface {}) (resp * Response , err error )
47
+ // Deprecated: the method will be removed in the next major version,
48
+ // use an ExecuteRequest object + Do() instead.
21
49
Execute (expr string , args interface {}) (resp * Response , err error )
22
50
51
+ // Deprecated: the method will be removed in the next major version,
52
+ // use a SelectRequest object + Do() instead.
23
53
GetTyped (space , index interface {}, key interface {}, result interface {}) (err error )
54
+ // Deprecated: the method will be removed in the next major version,
55
+ // use a SelectRequest object + Do() instead.
24
56
SelectTyped (space , index interface {}, offset , limit uint32 , iterator Iter , key interface {}, result interface {}) (err error )
57
+ // Deprecated: the method will be removed in the next major version,
58
+ // use an InsertRequest object + Do() instead.
25
59
InsertTyped (space interface {}, tuple interface {}, result interface {}) (err error )
60
+ // Deprecated: the method will be removed in the next major version,
61
+ // use a ReplaceRequest object + Do() instead.
26
62
ReplaceTyped (space interface {}, tuple interface {}, result interface {}) (err error )
63
+ // Deprecated: the method will be removed in the next major version,
64
+ // use a DeleteRequest object + Do() instead.
27
65
DeleteTyped (space , index interface {}, key interface {}, result interface {}) (err error )
66
+ // Deprecated: the method will be removed in the next major version,
67
+ // use a UpdateRequest object + Do() instead.
28
68
UpdateTyped (space , index interface {}, key , ops interface {}, result interface {}) (err error )
69
+ // Deprecated: the method will be removed in the next major version,
70
+ // use a CallRequest object + Do() instead.
29
71
CallTyped (functionName string , args interface {}, result interface {}) (err error )
72
+ // Deprecated: the method will be removed in the next major version,
73
+ // use a Call16Request object + Do() instead.
30
74
Call16Typed (functionName string , args interface {}, result interface {}) (err error )
75
+ // Deprecated: the method will be removed in the next major version,
76
+ // use a Call17Request object + Do() instead.
31
77
Call17Typed (functionName string , args interface {}, result interface {}) (err error )
78
+ // Deprecated: the method will be removed in the next major version,
79
+ // use an EvalRequest object + Do() instead.
32
80
EvalTyped (expr string , args interface {}, result interface {}) (err error )
81
+ // Deprecated: the method will be removed in the next major version,
82
+ // use an ExecuteRequest object + Do() instead.
33
83
ExecuteTyped (expr string , args interface {}, result interface {}) (SQLInfo , []ColumnMetaData , error )
34
84
85
+ // Deprecated: the method will be removed in the next major version,
86
+ // use a SelectRequest object + Do() instead.
35
87
SelectAsync (space , index interface {}, offset , limit uint32 , iterator Iter , key interface {}) * Future
88
+ // Deprecated: the method will be removed in the next major version,
89
+ // use an InsertRequest object + Do() instead.
36
90
InsertAsync (space interface {}, tuple interface {}) * Future
91
+ // Deprecated: the method will be removed in the next major version,
92
+ // use a ReplaceRequest object + Do() instead.
37
93
ReplaceAsync (space interface {}, tuple interface {}) * Future
94
+ // Deprecated: the method will be removed in the next major version,
95
+ // use a DeleteRequest object + Do() instead.
38
96
DeleteAsync (space , index interface {}, key interface {}) * Future
97
+ // Deprecated: the method will be removed in the next major version,
98
+ // use a UpdateRequest object + Do() instead.
39
99
UpdateAsync (space , index interface {}, key , ops interface {}) * Future
100
+ // Deprecated: the method will be removed in the next major version,
101
+ // use a UpsertRequest object + Do() instead.
40
102
UpsertAsync (space interface {}, tuple interface {}, ops interface {}) * Future
103
+ // Deprecated: the method will be removed in the next major version,
104
+ // use a CallRequest object + Do() instead.
41
105
CallAsync (functionName string , args interface {}) * Future
106
+ // Deprecated: the method will be removed in the next major version,
107
+ // use a Call16Request object + Do() instead.
42
108
Call16Async (functionName string , args interface {}) * Future
109
+ // Deprecated: the method will be removed in the next major version,
110
+ // use a Call17Request object + Do() instead.
43
111
Call17Async (functionName string , args interface {}) * Future
112
+ // Deprecated: the method will be removed in the next major version,
113
+ // use an EvalRequest object + Do() instead.
44
114
EvalAsync (expr string , args interface {}) * Future
115
+ // Deprecated: the method will be removed in the next major version,
116
+ // use an ExecuteRequest object + Do() instead.
45
117
ExecuteAsync (expr string , args interface {}) * Future
46
-
47
- NewPrepared (expr string ) (* Prepared , error )
48
- NewStream () (* Stream , error )
49
- NewWatcher (key string , callback WatchCallback ) (Watcher , error )
50
-
51
- Do (req Request ) (fut * Future )
52
118
}
0 commit comments