diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..387cacf --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +target +.classpath +.project +.settings \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d8f2e17 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic", + "maven.terminal.favorites": [ + { "alias": "Run Vert.X", "command": "compile vertx:run" } + ] +} diff --git a/modules/vertx-postgresql-reactive/pom.xml b/modules/vertx-postgresql-reactive/pom.xml new file mode 100644 index 0000000..c1a8d46 --- /dev/null +++ b/modules/vertx-postgresql-reactive/pom.xml @@ -0,0 +1,63 @@ + + 4.0.0 + + twopm.tech.orm-bench + bom + 1.0-SNAPSHOT + ../../pom.xml + + twopm.tech.bench.orm + vertx-postgresql-reactive + 1.0-SNAPSHOT + + + + io.vertx + vertx-stack-depchain + ${vertx.version} + pom + import + + + + + + io.vertx + vertx-core + + + + + + io.reactiverse + vertx-maven-plugin + ${vertx-maven-plugin.version} + + + vmp + + initialize + package + + + + + true + + + + org.codehaus.mojo + exec-maven-plugin + ${exec-maven-plugin.version} + + io.vertx.core.Launcher + + run + ${main.verticle} + + + + + + + \ No newline at end of file diff --git a/modules/vertx-postgresql-reactive/src/main/java/twopm/tech/bench/orm/vertx/Bench.java b/modules/vertx-postgresql-reactive/src/main/java/twopm/tech/bench/orm/vertx/Bench.java new file mode 100644 index 0000000..1d7ab7c --- /dev/null +++ b/modules/vertx-postgresql-reactive/src/main/java/twopm/tech/bench/orm/vertx/Bench.java @@ -0,0 +1,23 @@ +package twopm.tech.bench.orm.vertx; + +import io.vertx.core.AbstractVerticle; +import io.vertx.core.Promise; + +public class Bench extends AbstractVerticle { + + @Override + public void start(Promise startPromise) throws Exception { + vertx.createHttpServer().requestHandler(req -> { + req.response() + .putHeader("content-type", "text/plain") + .end("Test !!!"); + }).listen(8080, http -> { + if (http.succeeded()) { + startPromise.complete(); + System.out.println("HTTP server started on port 8080"); + } else { + startPromise.fail(http.cause()); + } + }); + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..478bf10 --- /dev/null +++ b/pom.xml @@ -0,0 +1,24 @@ + + + 4.0.0 + twopm.tech.orm-bench + bom + 1.0-SNAPSHOT + pom + + modules/vertx-postgresql-reactive + + + 11 + true + 11 + 11 + 4.2.1 + twopm.tech.bench.orm.vertx.Bench + 1.0.25 + UTF-8 + 3.8.1 + 3.2.4 + 3.0.0 + + \ No newline at end of file diff --git a/readme.md b/readme.md index a7c4900..9402939 100644 --- a/readme.md +++ b/readme.md @@ -30,3 +30,4 @@ Good to see if: - support extended PostgreSQL features (including json and array) - "N+1" problem automatic solutions (as much as possible) - ability to generate raw SQL (to be executed elsewhere) +- support for binary (BLOB) storage and extraction (10Mb per record max) diff --git a/workspace.code-workspace b/workspace.code-workspace new file mode 100644 index 0000000..7ae69c2 --- /dev/null +++ b/workspace.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "java.configuration.updateBuildConfiguration": "automatic", + "java.dependency.packagePresentation": "hierarchical" + } +}