Skip to content

Commit

Permalink
feat: YDB YdbDSLContext using(Configuration configuration)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillKurdyukov committed Sep 3, 2024
1 parent 157f7b6 commit c831519
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions jooq-dialect/src/main/java/tech/ydb/jooq/YDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c831519

Please sign in to comment.