You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project provides lightweight bundles of PostgreSQL binaries with reduced size that are intended for testing purposes.
4
6
It is a supporting project for the primary [io.zonky.test:embedded-database-spring-test](https://github.com/zonkyio/embedded-database-spring-test) and [io.zonky.test:embedded-postgres](https://github.com/zonkyio/embedded-postgres) projects.
5
-
But with a little help it can be also applicable with [com.opentable:otj-pg-embedded](https://github.com/opentable/otj-pg-embedded) and maybe some other projects.
7
+
However, with a little effort it can be also applicable with [com.opentable:otj-pg-embedded](https://github.com/opentable/otj-pg-embedded) and maybe some other projects.
8
+
9
+
## Provides
10
+
11
+
* Lightweight bundles of PostgreSQL binaries with reduced size (~10MB)
12
+
* Embedded PostgreSQL 11+ binaries even for Linux platform
13
+
* Configurable version of PostgreSQL binaries
6
14
7
-
## Use with [embedded-database-spring-test](https://github.com/zonkyio/embedded-database-spring-test) or [embedded-postgres](https://github.com/zonkyio/embedded-postgres)projects
15
+
## Use with [embedded-database-spring-test](https://github.com/zonkyio/embedded-database-spring-test) or [embedded-postgres](https://github.com/zonkyio/embedded-postgres)project
8
16
9
17
All necessary dependencies are already included in these projects, so no further action is required.
10
-
But you can change the version of the binaries by following the instructions described in [Postgres version](#postgres-version).
18
+
However, you can change the version of the postgres binaries by following the instructions described in [Postgres version](#postgres-version).
11
19
12
20
## Use with [com.opentable:otj-pg-embedded](https://github.com/opentable/otj-pg-embedded) project
13
21
14
-
Add some of the [available dependencies](https://mvnrepository.com/artifact/io.zonky.test.postgres) to your Maven configuration:
22
+
First, you have to add any of the [available dependencies](https://mvnrepository.com/artifact/io.zonky.test.postgres) to your Maven configuration:
Further, you need to implement a custom [PgBinaryResolver](https://github.com/opentable/otj-pg-embedded/blob/master/src/main/java/com/opentable/db/postgres/embedded/PgBinaryResolver.java):
33
+
Then you need to implement a custom [PgBinaryResolver](https://github.com/opentable/otj-pg-embedded/blob/master/src/main/java/com/opentable/db/postgres/embedded/PgBinaryResolver.java):
@@ -46,7 +54,7 @@ public class CustomPostgresBinaryResolver implements PgBinaryResolver {
46
54
47
55
</details><br/>
48
56
49
-
And register it:
57
+
And finally register it to the junit rule.
50
58
51
59
```java
52
60
@Rule
@@ -56,7 +64,7 @@ public SingleInstancePostgresRule pg = EmbeddedPostgresRules.singleInstance()
56
64
57
65
## Postgres version
58
66
59
-
The version of the binaries can be managed by importing `embedded-postgres-binaries-bom` in a required version into your dependency management section.
67
+
The version of the postgres binaries can be managed by importing `embedded-postgres-binaries-bom` in a required version into your dependency management section.
0 commit comments