A type-safe PostgreSQL database binding library generated by pGenie, targeting Java 21.
InsertAlbumSelectAlbumByFormatSelectAlbumByIdSelectAlbumByNameSelectAlbumFieldsSelectAlbumWithFiltersSelectAlbumWithTracksSelectGenreByArtistUpdateAlbumRecordingReturningUpdateAlbumReleased
AlbumFormatDiscInfoRecordingInfoTrackInfo
Add the generated sources to your Maven project alongside the required runtime dependency:
<dependency>
<groupId>io.pgenie.artifacts.myspace</groupId>
<artifactId>music-catalogue</artifactId>
<version>1.0.0</version>
</dependency>Obtain a JDBC Connection and execute a statement:
try (Connection conn = dataSource.getConnection()) {
var result = new io.pgenie.artifacts.myspace.musiccatalogue.statements.InsertAlbum(...).execute(conn);
}mvn verifyIntegration tests use Testcontainers to spin up a PostgreSQL container automatically. Docker must be available on the host.
mvn failsafe:integration-test failsafe:verify