Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update YDB SDK to v2.2.2 #78

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>

<!-- YDB SDK 2.x -->
<ydb-sdk-v2.version>2.1.10</ydb-sdk-v2.version>
<ydb-proto-api.version>1.6.0</ydb-proto-api.version>
<ydb-sdk-v2.version>2.2.2</ydb-sdk-v2.version>
<ydb-proto-api.version>1.6.2</ydb-proto-api.version>

<!-- build-only dependencies (provided) -->
<lombok.version>1.18.30</lombok.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package tech.ydb.yoj.repository.ydb.client;

import tech.ydb.common.transaction.TxMode;
import tech.ydb.core.Result;
import tech.ydb.core.Status;
import tech.ydb.core.grpc.GrpcReadStream;
Expand All @@ -9,6 +10,7 @@
import tech.ydb.table.query.DataQueryResult;
import tech.ydb.table.query.ExplainDataQueryResult;
import tech.ydb.table.query.Params;
import tech.ydb.table.query.ReadRowsResult;
import tech.ydb.table.query.ReadTablePart;
import tech.ydb.table.result.ResultSetReader;
import tech.ydb.table.settings.AlterTableSettings;
Expand All @@ -26,8 +28,11 @@
import tech.ydb.table.settings.ExplainDataQuerySettings;
import tech.ydb.table.settings.KeepAliveSessionSettings;
import tech.ydb.table.settings.PrepareDataQuerySettings;
import tech.ydb.table.settings.ReadRowsSettings;
import tech.ydb.table.settings.ReadTableSettings;
import tech.ydb.table.settings.RenameTablesSettings;
import tech.ydb.table.settings.RollbackTxSettings;
import tech.ydb.table.transaction.TableTransaction;
import tech.ydb.table.transaction.Transaction;
import tech.ydb.table.transaction.TxControl;
import tech.ydb.table.values.ListValue;
Expand All @@ -45,7 +50,6 @@ public final class QueryInterceptingSession implements Session {
private final Session delegate;
private final QueryInterceptor interceptor;


private QueryInterceptingSession(Session delegate, QueryInterceptor interceptor) {
this.delegate = delegate;
this.interceptor = interceptor;
Expand Down Expand Up @@ -162,6 +166,29 @@ public void close() {
delegate.close();
}

//////////////////////////
// @since: YDB SDK v2.2.0:

@Override
public CompletableFuture<Status> renameTables(RenameTablesSettings renameTablesSettings) {
return delegate.renameTables(renameTablesSettings);
}

@Override
public CompletableFuture<Result<ReadRowsResult>> readRows(String s, ReadRowsSettings readRowsSettings) {
return delegate.readRows(s, readRowsSettings);
}

@Override
public TableTransaction createNewTransaction(TxMode txMode) {
return delegate.createNewTransaction(txMode);
}

@Override
public CompletableFuture<Result<TableTransaction>> beginTransaction(TxMode txMode, BeginTxSettings beginTxSettings) {
return delegate.beginTransaction(txMode, beginTxSettings);
}

public enum QueryType {
DATA_QUERY,
SCAN_QUERY,
Expand Down