Skip to content

Commit

Permalink
Blocking DB Client (#7096)
Browse files Browse the repository at this point in the history
* Issue #6991 - Blocking DB Client: API, JDBC and Health

Signed-off-by: Tomáš Kraus <[email protected]>

* Issue #6991 - Blocking DB Client: Interceptors API and initial implementation in JDBC

Signed-off-by: Tomas Kraus <[email protected]>

* Issue #6991 - Blocking DB Client: Tracing support

Signed-off-by: Tomas Kraus <[email protected]>

* Issue #6991 - Blocking DB Client: Common metrics module

Signed-off-by: Tomas Kraus <[email protected]>

* - Fold dbclient-common into dbclient
- Implement dbclient-mongodb
- Re-work indexed/named parameters
- Convergence between DbClientContext and DbClientExecuteContext
- Generalized intercepted executions
- Removed package-private factory methods in favor of constructors
- Added javadocs
- Copyright and checkstyle fixes

* add missing newline

* - Fix LRA
- Fix examples/employee-app
- Fix examples/dbclient

* - Fix spotbugs errors
- Add static factory to MongoDbClientBuilder

* - Add metrics-jdbc
- Add jsonp
- Remove change in reactive/dbclient/jdbc

* Add dbclient tests

* - Rename io.helidon.dbclient.DbMapperProvider to io.helidon.dbclient.DbMapperProviderImpl to avoid confusion
- Fix module-info to have uses io.helidon.dbclient.spi.DbMapperProvider
- Fix connection close for transaction statements

* integration tests (app)

* - Fix copyright years
- Consistent naming (DB Client -> Database Client)
- Minize occurrences of the term "Pokemon" and use {@code Pokemon} when required.

* Testing work.

* Update maven-javadoc-plugin to 3.5.0 to get passed https://issues.apache.org/jira/browse/MJAVADOC-677

* Rebased on main, fixes to dbclient metrics

Signed-off-by: Tomas Langer <[email protected]>

---------

Signed-off-by: Tomáš Kraus <[email protected]>
Signed-off-by: Tomas Kraus <[email protected]>
Signed-off-by: Tomas Langer <[email protected]>
Co-authored-by: Romain Grecourt <[email protected]>
Co-authored-by: Tomas Langer <[email protected]>
  • Loading branch information
3 people authored Jul 14, 2023
1 parent 9327495 commit 48f0d4a
Show file tree
Hide file tree
Showing 361 changed files with 25,107 additions and 15,048 deletions.
4 changes: 2 additions & 2 deletions applications/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
<version.plugin.compiler>3.8.1</version.plugin.compiler>
<version.plugin.dependency>3.6.0</version.plugin.dependency>
<version.plugin.exec>1.6.0</version.plugin.exec>
<version.plugin.failsafe>3.0.0-M5</version.plugin.failsafe>
<version.plugin.failsafe>3.1.2</version.plugin.failsafe>
<version.plugin.helidon>3.0.3</version.plugin.helidon>
<version.plugin.helidon-cli>3.0.3</version.plugin.helidon-cli>
<version.plugin.jar>3.0.2</version.plugin.jar>
<version.plugin.nativeimage>0.9.16</version.plugin.nativeimage>
<version.plugin.os>1.5.0.Final</version.plugin.os>
<version.plugin.protobuf>0.6.1</version.plugin.protobuf>
<version.plugin.resources>2.7</version.plugin.resources>
<version.plugin.surefire>3.0.0-M5</version.plugin.surefire>
<version.plugin.surefire>3.1.0</version.plugin.surefire>
</properties>

<build>
Expand Down
42 changes: 42 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,48 @@
</dependency>

<!-- db client -->
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-jdbc</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-mongodb</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-health</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-jsonp</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-metrics</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-metrics-jdbc</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-tracing</artifactId>
<version>${helidon.version}</version>
</dependency>

<!-- reactive db client -->
<dependency>
<groupId>io.helidon.reactive.dbclient</groupId>
<artifactId>helidon-reactive-dbclient</artifactId>
Expand Down
61 changes: 61 additions & 0 deletions dbclient/dbclient/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019, 2023 Oracle and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.helidon.dbclient</groupId>
<artifactId>helidon-dbclient-project</artifactId>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>helidon-dbclient</artifactId>
<name>Helidon Database Client API</name>
<description>Helidon Database Client API</description>

<dependencies>
<dependency>
<groupId>io.helidon.common</groupId>
<artifactId>helidon-common-config</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.common</groupId>
<artifactId>helidon-common-context</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.common</groupId>
<artifactId>helidon-common-mapper</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.common.features</groupId>
<artifactId>helidon-common-features-api</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 48f0d4a

Please sign in to comment.