From c831519057e407a301845b17c2b788054fa5b7ab Mon Sep 17 00:00:00 2001 From: Kirill Kurdyukov Date: Tue, 3 Sep 2024 15:10:27 +0300 Subject: [PATCH] feat: YDB YdbDSLContext using(Configuration configuration) --- jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java b/jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java index e04f605..f39b417 100644 --- a/jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java +++ b/jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java @@ -8,6 +8,7 @@ import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZonedDateTime; +import org.jooq.Configuration; import org.jooq.ConnectionProvider; import org.jooq.Field; import org.jooq.JSON; @@ -257,6 +258,15 @@ public static YdbDSLContext using(ConnectionProvider connectionProvider, Setting return new YdbDSLContextImpl(connectionProvider, settings); } + /** + * Create an executor from a custom configuration. + * + * @param configuration The configuration + */ + public static YdbDSLContext using(Configuration configuration) { + return new YdbDSLContextImpl(configuration); + } + private static RuntimeException initializeException(Exception e) { return new DataAccessException("SQL [Error when initialising Connection]; " + e.getMessage(), e); }