Skip to content

Commit 8dda63d

Browse files
committed
* Removed Deprecated mark from table/session.Prepare method
* Added comments for `table/session.Execute` method
1 parent 670ccd7 commit 8dda63d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* Removed `Deprecated` mark from `table/session.Prepare` method
2+
* Added comments for `table/session.Execute` method
3+
14
## v3.26.2
25
* Refactored of making permissions from scheme entry
36

table/table.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ type Session interface {
100100
) (exp DataQueryExplanation, err error)
101101

102102
// Prepare prepares query for executing in the future
103-
//
104-
// Deprecated: use Execute with KeepInCache policy option
105103
Prepare(
106104
ctx context.Context,
107105
query string,
108106
) (stmt Statement, err error)
109107

108+
// Execute executes query.
109+
//
110+
// By default, Execute have a flag options.WithKeepInCache(true). For redefine behavior -
111+
// append option options.WithKeepInCache(false)
110112
Execute(
111113
ctx context.Context,
112114
tx *TransactionControl,

0 commit comments

Comments
 (0)