Common code for JDBC

Steinar Bang 4212de1248 Upgrade parent to use maven-compiler-plugin 3.12.1, maven-javadoc-plugin 3.6.3, maven-surefire-plugin 3.2.3, jacoco-maven-plugin 0.8.11, maven-clean-plugin 3.3.2 2 months ago
.github 100672b718 Replace java 11 with java 17 in github actions CI build 8 months ago
jacoco-coverage-report 497697a1c2 [maven-release-plugin] prepare for next development iteration 8 months ago
jdbc 497697a1c2 [maven-release-plugin] prepare for next development iteration 8 months ago
jdbc-bom 497697a1c2 [maven-release-plugin] prepare for next development iteration 8 months ago
.editorconfig 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 years ago
.gitignore 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 years ago
LICENSE 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 years ago
README.org d7ba43c7a6 Add version 1.2.0 to the release history in the README and update the usage example in the README to 1.2.0 8 months ago
pom.xml 4212de1248 Upgrade parent to use maven-compiler-plugin 3.12.1, maven-javadoc-plugin 3.6.3, maven-surefire-plugin 3.2.3, jacoco-maven-plugin 0.8.11, maven-clean-plugin 3.3.2 2 months ago

README.org

JDBC common code.

Common code related to JDBC.

Status of the project

file:https://github.com/steinarb/jdbc/actions/workflows/jdbc-maven-ci-build.yml/badge.svg file:https://coveralls.io/repos/github/steinarb/jdbc/badge.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=alert_status#.svg file:https://maven-badges.herokuapp.com/maven-central/no.priv.bang.jdbc/jdbc/badge.svg file:https://www.javadoc.io/badge/no.priv.bang.jdbc/jdbc.svg

file:https://sonarcloud.io/images/project_badges/sonarcloud-white.svg

file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=sqale_index#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=coverage#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=ncloc#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=code_smells#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=sqale_rating#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=security_rating#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=bugs#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=vulnerabilities#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=duplicated_lines_density#.svg file:https://sonarcloud.io/api/project_badges/measure?project=steinarb_jdbc&metric=reliability_rating#.svg

Release history

Date Version Comment
<2023-07-26 Wed 21:05> 1.2.0 Add ResultSetSqlDumper, build with Java 17
<2021-06-11 Fri 00:13> 1.1.1 Provide a Bill of Materials (BoM)
<2021-04-15 Thu 19:49> 1.1.0 Get dependencies and maven config from parent POM. New versions of stuff
<2020-01-03 Fri 23:55> 1.0.0 Add JDBC DataSourceProxy

Overview of the project

DataSourceProxy

This is an implementation of the DataSource interface that has a different DataSource as a property and delegates all methods to the wrapped DataSource object.

Javadoc for the DataSourceProxy class.

To use this in an OSGi maven project by first importing the BoM

no.priv.bang.jdbc jdbc-bom 1.2.0 pom import

And then adding a provided dependency for compilation and a feature repository dependency, to ensure the library is loaded at runtime:

no.priv.bang.jdbc jdbc.datasourceproxy provided no.priv.bang.jdbc jdbc.datasourceproxy xml features

SqlDumper

This is a class that can export a JDBC ResultSet to an OutputStream as an SQL formatted liquibase changeset.

To use this in an OSGi maven project by first importing the BoM

no.priv.bang.jdbc jdbc-bom 1.2.0 pom import

And then adding a provided dependency for compilation and a feature repository dependency, to ensure the library is loaded at runtime:

no.priv.bang.jdbc jdbc.sqldumper provided no.priv.bang.jdbc jdbc.sqldumper xml features

License

This code is licensed under the Apache license v. 2. See the LICENSE file for details.