Common code for JDBC

Steinar Bang 90f9bc8541 Upgrade parent to get junit jupiter 5.11.0, mockito 5.13.0 and all maven plugins as current latest stable version 2 månader sedan
.github 100672b718 Replace java 11 with java 17 in github actions CI build 1 år sedan
jacoco-coverage-report 497697a1c2 [maven-release-plugin] prepare for next development iteration 1 år sedan
jdbc c5ec97f51b Change AlbumEntry from immutable bean with builder to record with builder 5 månader sedan
jdbc-bom 497697a1c2 [maven-release-plugin] prepare for next development iteration 1 år sedan
.editorconfig 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 år sedan
.gitignore 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 år sedan
LICENSE 7122bf4982 Add an OSGi bundle containing a JDBC DataSource proxy class 4 år sedan
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 1 år sedan
pom.xml 90f9bc8541 Upgrade parent to get junit jupiter 5.11.0, mockito 5.13.0 and all maven plugins as current latest stable version 2 månader sedan

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.