Skip to content

Commit e02f318

Browse files
committed
pool: removed deprecated methods
Removed deprecated pool's methods. Related tests are updated (deleted or refactored). Also removed mentioned methods in interfaces declarations. Fixes #478
1 parent 57dc833 commit e02f318

File tree

7 files changed

+297
-2246
lines changed

7 files changed

+297
-2246
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
1919
* `box.New` returns an error instead of panic (#448).
2020
* Now cases of `<-ctx.Done()` returns wrapped error provided by `ctx.Cause()`.
2121
Allows you compare it using `errors.Is/As` (#457).
22+
* Removed deprecated `pool` methods, related interfaces and tests are updated.
2223

2324
### Fixed
2425

connector.go

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -16,114 +16,4 @@ type Connector interface {
1616
NewPrepared(expr string) (*Prepared, error)
1717
NewStream() (*Stream, error)
1818
NewWatcher(key string, callback WatchCallback) (Watcher, error)
19-
20-
// Deprecated: the method will be removed in the next major version,
21-
// use a PingRequest object + Do() instead.
22-
Ping() ([]interface{}, error)
23-
// Deprecated: the method will be removed in the next major version,
24-
// use a SelectRequest object + Do() instead.
25-
Select(space, index interface{}, offset, limit uint32, iterator Iter,
26-
key interface{}) ([]interface{}, error)
27-
// Deprecated: the method will be removed in the next major version,
28-
// use an InsertRequest object + Do() instead.
29-
Insert(space interface{}, tuple interface{}) ([]interface{}, error)
30-
// Deprecated: the method will be removed in the next major version,
31-
// use a ReplicaRequest object + Do() instead.
32-
Replace(space interface{}, tuple interface{}) ([]interface{}, error)
33-
// Deprecated: the method will be removed in the next major version,
34-
// use a DeleteRequest object + Do() instead.
35-
Delete(space, index interface{}, key interface{}) ([]interface{}, error)
36-
// Deprecated: the method will be removed in the next major version,
37-
// use a UpdateRequest object + Do() instead.
38-
Update(space, index interface{}, key interface{}, ops *Operations) ([]interface{}, error)
39-
// Deprecated: the method will be removed in the next major version,
40-
// use a UpsertRequest object + Do() instead.
41-
Upsert(space interface{}, tuple interface{}, ops *Operations) ([]interface{}, error)
42-
// Deprecated: the method will be removed in the next major version,
43-
// use a CallRequest object + Do() instead.
44-
Call(functionName string, args interface{}) ([]interface{}, error)
45-
// Deprecated: the method will be removed in the next major version,
46-
// use a Call16Request object + Do() instead.
47-
Call16(functionName string, args interface{}) ([]interface{}, error)
48-
// Deprecated: the method will be removed in the next major version,
49-
// use a Call17Request object + Do() instead.
50-
Call17(functionName string, args interface{}) ([]interface{}, error)
51-
// Deprecated: the method will be removed in the next major version,
52-
// use an EvalRequest object + Do() instead.
53-
Eval(expr string, args interface{}) ([]interface{}, error)
54-
// Deprecated: the method will be removed in the next major version,
55-
// use an ExecuteRequest object + Do() instead.
56-
Execute(expr string, args interface{}) ([]interface{}, error)
57-
58-
// Deprecated: the method will be removed in the next major version,
59-
// use a SelectRequest object + Do() instead.
60-
GetTyped(space, index interface{}, key interface{}, result interface{}) error
61-
// Deprecated: the method will be removed in the next major version,
62-
// use a SelectRequest object + Do() instead.
63-
SelectTyped(space, index interface{}, offset, limit uint32, iterator Iter, key interface{},
64-
result interface{}) error
65-
// Deprecated: the method will be removed in the next major version,
66-
// use an InsertRequest object + Do() instead.
67-
InsertTyped(space interface{}, tuple interface{}, result interface{}) error
68-
// Deprecated: the method will be removed in the next major version,
69-
// use a ReplaceRequest object + Do() instead.
70-
ReplaceTyped(space interface{}, tuple interface{}, result interface{}) error
71-
// Deprecated: the method will be removed in the next major version,
72-
// use a DeleteRequest object + Do() instead.
73-
DeleteTyped(space, index interface{}, key interface{}, result interface{}) error
74-
// Deprecated: the method will be removed in the next major version,
75-
// use a UpdateRequest object + Do() instead.
76-
UpdateTyped(space, index interface{}, key interface{}, ops *Operations,
77-
result interface{}) error
78-
// Deprecated: the method will be removed in the next major version,
79-
// use a CallRequest object + Do() instead.
80-
CallTyped(functionName string, args interface{}, result interface{}) error
81-
// Deprecated: the method will be removed in the next major version,
82-
// use a Call16Request object + Do() instead.
83-
Call16Typed(functionName string, args interface{}, result interface{}) error
84-
// Deprecated: the method will be removed in the next major version,
85-
// use a Call17Request object + Do() instead.
86-
Call17Typed(functionName string, args interface{}, result interface{}) error
87-
// Deprecated: the method will be removed in the next major version,
88-
// use an EvalRequest object + Do() instead.
89-
EvalTyped(expr string, args interface{}, result interface{}) error
90-
// Deprecated: the method will be removed in the next major version,
91-
// use an ExecuteRequest object + Do() instead.
92-
ExecuteTyped(expr string, args interface{},
93-
result interface{}) (SQLInfo, []ColumnMetaData, error)
94-
95-
// Deprecated: the method will be removed in the next major version,
96-
// use a SelectRequest object + Do() instead.
97-
SelectAsync(space, index interface{}, offset, limit uint32, iterator Iter,
98-
key interface{}) *Future
99-
// Deprecated: the method will be removed in the next major version,
100-
// use an InsertRequest object + Do() instead.
101-
InsertAsync(space interface{}, tuple interface{}) *Future
102-
// Deprecated: the method will be removed in the next major version,
103-
// use a ReplaceRequest object + Do() instead.
104-
ReplaceAsync(space interface{}, tuple interface{}) *Future
105-
// Deprecated: the method will be removed in the next major version,
106-
// use a DeleteRequest object + Do() instead.
107-
DeleteAsync(space, index interface{}, key interface{}) *Future
108-
// Deprecated: the method will be removed in the next major version,
109-
// use a UpdateRequest object + Do() instead.
110-
UpdateAsync(space, index interface{}, key interface{}, ops *Operations) *Future
111-
// Deprecated: the method will be removed in the next major version,
112-
// use a UpsertRequest object + Do() instead.
113-
UpsertAsync(space interface{}, tuple interface{}, ops *Operations) *Future
114-
// Deprecated: the method will be removed in the next major version,
115-
// use a CallRequest object + Do() instead.
116-
CallAsync(functionName string, args interface{}) *Future
117-
// Deprecated: the method will be removed in the next major version,
118-
// use a Call16Request object + Do() instead.
119-
Call16Async(functionName string, args interface{}) *Future
120-
// Deprecated: the method will be removed in the next major version,
121-
// use a Call17Request object + Do() instead.
122-
Call17Async(functionName string, args interface{}) *Future
123-
// Deprecated: the method will be removed in the next major version,
124-
// use an EvalRequest object + Do() instead.
125-
EvalAsync(expr string, args interface{}) *Future
126-
// Deprecated: the method will be removed in the next major version,
127-
// use an ExecuteRequest object + Do() instead.
128-
ExecuteAsync(expr string, args interface{}) *Future
12919
}

0 commit comments

Comments
 (0)