55
66import javax .annotation .Nullable ;
77
8- import tech .ydb .jdbc .common .YdbQuery ;
9- import tech .ydb .jdbc .connection .YdbContext ;
10- import tech .ydb .jdbc .connection .YdbExecutor ;
8+ import tech .ydb .jdbc .context .YdbQuery ;
9+ import tech .ydb .jdbc .context .YdbContext ;
10+ import tech .ydb .jdbc .context .YdbExecutor ;
1111import tech .ydb .table .query .DataQueryResult ;
1212import tech .ydb .table .query .ExplainDataQueryResult ;
1313import tech .ydb .table .query .Params ;
1414import tech .ydb .table .result .ResultSetReader ;
15+ import tech .ydb .table .settings .ExecuteDataQuerySettings ;
1516
1617public interface YdbConnection extends Connection {
1718
@@ -47,11 +48,12 @@ public interface YdbConnection extends Connection {
4748 *
4849 * @param query query to execute
4950 * @param params parameters for query
51+ * @param settings settings of execution
5052 * @param executor executor for logging and warnings
5153 * @return list of result set
5254 * @throws SQLException if query cannot be executed
5355 */
54- DataQueryResult executeDataQuery (YdbQuery query , Params params , YdbExecutor executor ) throws SQLException ;
56+ DataQueryResult executeDataQuery (YdbQuery query , YdbExecutor executor , ExecuteDataQuerySettings settings , Params params ) throws SQLException ;
5557
5658 /**
5759 * Explicitly execute query as a scan query
@@ -62,7 +64,7 @@ public interface YdbConnection extends Connection {
6264 * @return single result set with rows
6365 * @throws SQLException if query cannot be executed
6466 */
65- ResultSetReader executeScanQuery (YdbQuery query , Params params , YdbExecutor executor ) throws SQLException ;
67+ ResultSetReader executeScanQuery (YdbQuery query , YdbExecutor executor , Params params ) throws SQLException ;
6668
6769 /**
6870 * Explicitly explain this query
@@ -124,12 +126,5 @@ YdbPreparedStatement prepareStatement(String sql, int resultSetType, int resultS
124126 * @return prepared statement
125127 * @throws SQLException in case of any internal error
126128 */
127- YdbPreparedStatement prepareStatement (String sql , PreparedStatementMode mode ) throws SQLException ;
128-
129- enum PreparedStatementMode {
130- DEFAULT ,
131- IN_MEMORY ,
132- DATA_QUERY ,
133- DATA_QUERY_BATCH
134- }
129+ YdbPreparedStatement prepareStatement (String sql , YdbPrepareMode mode ) throws SQLException ;
135130}
0 commit comments