Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Extend ReplicationCreateSlotBuilder DSL to support temporary re…
…plications slots (#1306) * feat: Extend ReplicationCreateSlotBuilder DSL to support temporary replications slots With Postgres 10 it is possible to create temporary replication slots. The Postgres JDBC Driver provides a DSL to create replication slots, but there was no option to declare the slot as temporary. This commit extends the DSL by a withTemporaryOption method. BREAKING CHANGE: AbstractCreateSlotBuilder has no parameterless constructor anymore Closes #1305 * refactor: Write tests in a more idiomatic way
- Loading branch information
Showing with 196 additions and 8 deletions.
- +25 −0 pgjdbc/src/main/java/org/postgresql/replication/fluent/AbstractCreateSlotBuilder.java
- +12 −0 pgjdbc/src/main/java/org/postgresql/replication/fluent/ChainedCommonCreateSlotBuilder.java
- +7 −3 pgjdbc/src/main/java/org/postgresql/replication/fluent/logical/LogicalCreateSlotBuilder.java
- +6 −3 pgjdbc/src/main/java/org/postgresql/replication/fluent/physical/PhysicalCreateSlotBuilder.java
- +146 −2 pgjdbc/src/test/java/org/postgresql/replication/ReplicationSlotTest.java