{"id":28254397,"url":"https://github.com/pharosnet/vertx-pg-dal","last_synced_at":"2026-05-15T13:32:16.485Z","repository":{"id":57739825,"uuid":"199005050","full_name":"pharosnet/vertx-pg-dal","owner":"pharosnet","description":"vertx postgres database access layer","archived":false,"fork":false,"pushed_at":"2020-10-13T14:57:14.000Z","size":94,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-11T03:13:51.148Z","etag":null,"topics":["code-generator","dal","maven-plugin","vertx"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pharosnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T11:27:31.000Z","updated_at":"2019-10-11T12:59:12.000Z","dependencies_parsed_at":"2022-09-01T10:50:25.142Z","dependency_job_id":null,"html_url":"https://github.com/pharosnet/vertx-pg-dal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pharosnet/vertx-pg-dal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharosnet%2Fvertx-pg-dal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharosnet%2Fvertx-pg-dal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharosnet%2Fvertx-pg-dal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharosnet%2Fvertx-pg-dal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharosnet","download_url":"https://codeload.github.com/pharosnet/vertx-pg-dal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharosnet%2Fvertx-pg-dal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generator","dal","maven-plugin","vertx"],"created_at":"2025-05-19T19:19:39.446Z","updated_at":"2026-05-15T13:32:16.480Z","avatar_url":"https://github.com/pharosnet.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vertx-pg-dal\nPostgres database access layer, base on vertx-pg-client (3.8.0). \n\n## Features\n\n* async\n* simple\n* no reflect-code cost\n\n\n\n## usage  \n\n* add dependency\n\n  ```xml\n  \u003cdependency\u003e\n      \u003cgroupId\u003eio.vertx\u003c/groupId\u003e\n      \u003cartifactId\u003evertx-pg-client\u003c/artifactId\u003e\n      \u003cversion\u003e${vertx.version}\u003c/version\u003e \u003c!-- [3.8.0, --\u003e\n  \u003c/dependency\u003e\n  \n  \u003cdependency\u003e\n      \u003cgroupId\u003eorg.pharosnet\u003c/groupId\u003e\n      \u003cartifactId\u003evertx-pg-dal\u003c/artifactId\u003e\n      \u003cversion\u003e1.5.8\u003c/version\u003e\n  \u003c/dependency\u003e\n  ```\n\n  \n\n* update pom.xml\n\n  ```xml\n  \u003cplugin\u003e\n      \u003cartifactId\u003emaven-compiler-plugin\u003c/artifactId\u003e\n      \u003cversion\u003e3.8.0\u003c/version\u003e\n      \u003cconfiguration\u003e\n          \u003csource\u003e11\u003c/source\u003e\n          \u003ctarget\u003e11\u003c/target\u003e\n          \u003cencoding\u003eUTF-8\u003c/encoding\u003e\n          \u003cverbose\u003etrue\u003c/verbose\u003e\n          \u003cgeneratedSourcesDirectory\u003esrc/main/generated\u003c/generatedSourcesDirectory\u003e\u003cgeneratedTestSourcesDirectory\u003esrc/test/generated\u003c/generatedTestSourcesDirectory\u003e\n      \u003c/configuration\u003e\n      \u003cexecutions\u003e\n          \u003cexecution\u003e\n              \u003cid\u003edefault-compile\u003c/id\u003e\n              \u003cconfiguration\u003e\n                  \u003cannotationProcessors\u003e\n                      \u003cannotationProcessor\u003eio.vertx.codegen.CodeGenProcessor\u003c/annotationProcessor\u003e\n                      \u003cannotationProcessor\u003eorg.pharosnet.vertx.pg.dal.gen.PgCodeGenProcessor\u003c/annotationProcessor\u003e\n                  \u003c/annotationProcessors\u003e\n                  \u003cgeneratedSourcesDirectory\u003esrc/main/generated\u003c/generatedSourcesDirectory\u003e\n                  \u003ccompilerArgs\u003e\n                      \u003carg\u003e-Acodegen.output=${project.basedir}/src/main\u003c/arg\u003e\n                  \u003c/compilerArgs\u003e\n              \u003c/configuration\u003e\n          \u003c/execution\u003e\n          \u003cexecution\u003e\n              \u003cid\u003edefault-testCompile\u003c/id\u003e\n              \u003cconfiguration\u003e\n                  \u003cannotationProcessors\u003e\n                      \u003cannotationProcessor\u003eio.vertx.codegen.CodeGenProcessor\u003c/annotationProcessor\u003e\n                      \u003cannotationProcessor\u003eorg.pharosnet.vertx.pg.dal.gen.PgCodeGenProcessor\u003c/annotationProcessor\u003e\n                  \u003c/annotationProcessors\u003e\n                  \u003cgeneratedTestSourcesDirectory\u003esrc/test/generated\u003c/generatedTestSourcesDirectory\u003e\n                  \u003ccompilerArgs\u003e\n                      \u003carg\u003e-Acodegen.output=${project.basedir}/src/test\u003c/arg\u003e\n                  \u003c/compilerArgs\u003e\n              \u003c/configuration\u003e\n          \u003c/execution\u003e\n      \u003c/executions\u003e\n  \u003c/plugin\u003e\n  ```\n\n* CREATE A TABLE ROW CLASS\n\n  ```JAVA\n  @Table(schema = \"CDST\", name = \"USER\")\n  public class User extends AbstractRow {\n  \n      @Column(name = \"ID\", kind = ColumnKind.ID)\n      private String id;\n  \n      @Column(name = \"data\")\n      private String name;\n  \n  \n      public String getId() {\n          return id;\n      }\n  \n      public void setId(String id) {\n          this.id = id;\n      }\n  \n      public String getName() {\n          return name;\n      }\n  \n      public void setName(String name) {\n          this.name = name;\n      }\n  }\n  \n  ```\n\n  \n\n* CREATE A DAL INTERFACE\n\n  ```java\n  @Dal\n  public interface UserDAL extends AbstractDAL {\n  \n      @Query(\"select * from \\\"cdst\\\".\\\"user\\\" where \\\"id\\\" = $1 or \\\"id\\\" = $2 offset $3 limit $4\")\n      void query01(\n              @Arg({1, 2}) String id,\n              @Arg({3})Integer offset,\n              @Arg({4})Integer length,\n              Handler\u003cAsyncResult\u003cOptional\u003cStream\u003cUser\u003e\u003e\u003e\u003e handler);\n  \n      @Query(\"select * from \\\"cdst\\\".\\\"user\\\" where \\\"id\\\" = $1 \")\n      void query02(\n              @Arg({1}) String id,\n              @Arg({2})Integer offset,\n              @Arg({3})Integer length,\n              Handler\u003cAsyncResult\u003cOptional\u003cUser\u003e\u003e\u003e handler);\n   \n      // support sql placeholder\n      @Query(\"select * from \\\"cdst\\\".\\\"user\\\" where \\\"id\\\" = $1 and \\\"name\\\" in (%names) offset $2 limit $3\")\n      void query03(\n              @Arg({1}) String id,\n              @Arg(kind = ArgKind.PLACEHOLDER) List\u003cInteger\u003e names,\n              @Arg({2})Integer offset,\n              @Arg({3})Integer length,\n              Handler\u003cAsyncResult\u003cOptional\u003cStream\u003cUser\u003e\u003e\u003e\u003e handler);\n  \n  }\n  \n  ```\n * Get dal from PostgresDALs.\n  ```java\n  // init postgres dal holder.\n  PostgresDALs.INIT(client);\n  // get UserDAL from PostgresDALs\n  UserDAL dal = PostgresDALs.get(UserDAL.class);\n\n```\n  \n\n* RUN MAVEN COMPILE, THEN IT WILL GENERATE DAL JAVA FILES. \n\n* HAPPY TO USE THEM.\n\n## THANKS\n\n* vertx-pg-client","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharosnet%2Fvertx-pg-dal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpharosnet%2Fvertx-pg-dal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharosnet%2Fvertx-pg-dal/lists"}