zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.
Apache License 2.0
399 stars 37 forks source link

Highlight postgresql versions supported by the library. #231

Closed swapy closed 1 year ago

swapy commented 1 year ago

While trying to go through the documentation I could not find what versions of postgresql are supported.

Can we highlight them.

Also any additional postgresql implementations should work like AWS Aurora postgres or AWS RDS and so on can be mentioned. If tested against any provider/version can also be mentioned.

Thank you again for your efforts.

tomix26 commented 1 year ago

You can use any docker image (so any version of postgres) that is compatible with the official images of the supported databases. In case of postgres, the official docker image is https://hub.docker.com/_/postgres

It is mentioned in the second paragraph of the documentation related to the provider docker. If you think it would be useful to improve the documentation, help is welcome.

tomix26 commented 1 year ago

To change the version of postgres, use the following configuration property:

zonky.test.database.postgres.docker.image=postgres:11-alpine
swapy commented 1 year ago

Thank you very much, that helps.