ydb-platform / ydb-r2dbc-driver

YDB R2DBC Driver
Apache License 2.0
3 stars 1 forks source link

implement io.r2dbc.spi.Statement & YDBConnectionState #2

Closed KirillKurdyukov closed 8 months ago

KirillKurdyukov commented 8 months ago

package tech.ydb.io.r2dbc.statement

YDBConnectionState

public sealed interface YDBConnectionState permits Close, InTransaction, OutTransaction {

    Mono<Result<DataQueryResult>> executeDataQuery(String yql, Params params);

    Mono<Status> executeSchemeQuery(String yql);
}

YDBStatementDDL: execDataQuery in / out transaction YDBStatementDML: binding throw Exception CompletableFuture.error + only out transaction + execSchemaQuery