File tree Expand file tree Collapse file tree
operator/src/main/java/it/aboutbits/postgresql/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import jakarta .enterprise .context .ApplicationScoped ;
66import lombok .RequiredArgsConstructor ;
77import org .jooq .CloseableDSLContext ;
8+ import org .jooq .exception .DataAccessException ;
89import org .jooq .impl .DSL ;
910import org .jspecify .annotations .NullMarked ;
1011
@@ -21,7 +22,7 @@ public class PostgreSQLContextFactory {
2122 private final KubernetesClient kubernetesClient ;
2223
2324 /// Create a DSLContext with a JDBC connection to the PostgreSQL maintenance database.
24- public CloseableDSLContext getDSLContext (ClusterConnection clusterConnection ) {
25+ public CloseableDSLContext getDSLContext (ClusterConnection clusterConnection ) throws DataAccessException {
2526 return getDSLContext (
2627 clusterConnection ,
2728 clusterConnection .getSpec ().getDatabase ()
@@ -32,7 +33,7 @@ public CloseableDSLContext getDSLContext(ClusterConnection clusterConnection) {
3233 public CloseableDSLContext getDSLContext (
3334 ClusterConnection clusterConnection ,
3435 String database
35- ) {
36+ ) throws DataAccessException {
3637 var credentials = kubernetesService .getSecretRefCredentials (
3738 kubernetesClient ,
3839 clusterConnection
You can’t perform that action at this time.
0 commit comments