11= Vert.x MySQL / PostgreSQL client
22
3- The `link:../../groovydoc/io/vertx/groovy/ext/asyncsql/AsyncSQLClient.html[ MySQL / PostgreSQL Client]` is responsible for providing an
3+ The Async MySQL / PostgreSQL Client is responsible for providing an
44interface for Vert.x applications that need to interact with a MySQL or PostgreSQL database.
55
66It uses Mauricio Linhares https://github.com/mauricio/postgresql-async[async driver] to interact with the MySQL
@@ -15,7 +15,7 @@ application.
1515
1616To use this client, you need to add the following jar to your `CLASSPATH`:
1717
18- * {maven-artifactId} {maven-version} (the client)
18+ * vertx-mysql-postgresql-client 3.3.0-SNAPSHOT (the client)
1919* scala-library 2.11.4
2020* the postgress-async-2.11 and mysdql-async-2.11 from https://github.com/mauricio/postgresql-async
2121* joda time
@@ -31,23 +31,27 @@ If you are building a _Fat-jar_ using Maven or Gradle, just add the following de
3131[source,xml,subs="+attributes"]
3232----
3333<dependency>
34- <groupId>{maven-groupId} </groupId>
35- <artifactId>{maven-artifactId} </artifactId>
36- <version>{maven-version} </version>
34+ <groupId>io.vertx </groupId>
35+ <artifactId>vertx-mysql-postgresql-client </artifactId>
36+ <version>3.3.0-SNAPSHOT </version>
3737</dependency>
3838----
3939
4040* Gradle (in your `build.gradle` file):
4141
4242[source,groovy,subs="+attributes"]
4343----
44- compile "{maven-groupId}:{maven-artifactId}:{maven-version}"
44+ compile 'io.vertx:vertx-mysql-postgresql-client:3.3.0-SNAPSHOT'
4545----
4646
4747=== In an application using a vert.x distributions
4848
4949If you are using a vert.x distribution, add the jar files listed above to the `$VERTX_HOME/lib` directory.
5050
51+ Alternatively, you can edit the `vertx-stack.json` file located in `$VERTX_HOME`, and set `"included": true`
52+ for the `vertx-mysql-postgresql-client` dependency. Once done, launch: `vertx resolve --dir=lib --stack=
53+ ./vertx-stack.json`. It downloads the client and its dependencies.
54+
5155== Creating a the client
5256
5357There are several ways to create a client. Let's go through them all.
0 commit comments