I'm having this problem no matter what dependency I import. I followed the guide in https://quarkus.io/guides/reactive-postgres-client. Using another dependency - not "by" Quarkus, for example - doesn't solve it either. It's in this piece of code:
private void initDatabase() {
client.query("DROP TABLE IF EXISTS fruits")
.thenCompose(r -> client.query("CREATE TABLE fruits (id SERIAL PRIMARY KEY, name TEXT NOT NULL)"))
.thenCompose(r -> client.query("INSERT INTO fruits (name) VALUES ('Orange')"))
.thenCompose(r -> client.query("INSERT INTO fruits (name) VALUES ('Pear')"))
.thenCompose(r -> client.query("INSERT INTO fruits (name) VALUES ('Apple')"))
.toCompletableFuture()
.join();
}
clientis. You've likely importedio.vertxdependencies but instead need to import theio.smallrye.mutinyequivalent - Andy Guibertio.vertx.mutiny.pgclient; 2)io.vertx.axle.pgclient; 3)io.vertx.reactivex.pgclient; and 4)io.vertx.pgclient. - Rasshu