Skip to content

vert-x3/vertx-mysql-postgresql-client

 
 

Repository files navigation

Vert.x MySQL PostgreSQL client

Build Status

This Vert.x client uses the Mauricio Linhares driver to support a fully async client for MySQL and PostgreSQL.

Please see the in source asciidoc documentation or the main documentation on the web-site for a full description:

Requirements for running test suite

  • A working PostgreSQL or MySQL server

  • For testing PostgreSQL: A testdb database on a local PostgreSQL install and a user called vertx with password password

  • For testing MySQL: A testdb database on a local MySQL install and a user called vertx with password password

Setting up test databases with Docker:

docker run --rm --name vertx-postgres -e POSTGRES_USER=vertx -e POSTGRES_PASSWORD=password -e POSTGRES_DB=testdb -p 5432:5432 postgres
docker run --rm --name vertx-postgres-ssl -p 54321:5432 \
  -e POSTGRES_USER=vertx \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=testdb \
  -v $(pwd)/src/test/resources/ssl-docker/server.crt:/docker-entrypoint-initdb.d/server.crt \
  -v $(pwd)/src/test/resources/ssl-docker/server.key:/docker-entrypoint-initdb.d/server.key \
  -v $(pwd)/src/test/resources/ssl-docker/init.sh:/docker-entrypoint-initdb.d/init.sh \
  postgres
docker run --rm --name vertx-mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_USER=vertx -e MYSQL_PASSWORD=password -e MYSQL_DATABASE=testdb -p 3306:3306 mysql/mysql-server:5.6