{"id":20474173,"url":"https://github.com/marschall/jfr-jdbc","last_synced_at":"2025-06-13T03:06:44.028Z","repository":{"id":45099106,"uuid":"171715897","full_name":"marschall/jfr-jdbc","owner":"marschall","description":"a JDBC driver that wraps an other JDBC driver and generates JFR events","archived":false,"fork":false,"pushed_at":"2024-02-03T10:11:10.000Z","size":95,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:02:53.225Z","etag":null,"topics":["java","java-flight-recorder","jdbc"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marschall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T17:10:04.000Z","updated_at":"2024-09-23T10:39:05.000Z","dependencies_parsed_at":"2024-11-15T14:40:54.329Z","dependency_job_id":null,"html_url":"https://github.com/marschall/jfr-jdbc","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/marschall/jfr-jdbc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-jdbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-jdbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-jdbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-jdbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marschall","download_url":"https://codeload.github.com/marschall/jfr-jdbc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-jdbc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259571668,"owners_count":22878187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","java-flight-recorder","jdbc"],"created_at":"2024-11-15T14:28:28.562Z","updated_at":"2025-06-13T03:06:43.898Z","avatar_url":"https://github.com/marschall.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"JFR JDBC [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/jfr-jdbc/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/jfr-jdbc) [![Javadocs](https://www.javadoc.io/badge/com.github.marschall/jfr-jdbc.svg)](https://www.javadoc.io/doc/com.github.marschall/jfr-jdbc) [![Build Status](https://travis-ci.org/marschall/jfr-jdbc.svg?branch=master)](https://travis-ci.org/marschall/jfr-jdbc)\n========\n\nA JDBC driver that wraps an other JDBC driver and generates JFR events.\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.marschall\u003c/groupId\u003e\n  \u003cartifactId\u003ejfr-jdbc\u003c/artifactId\u003e\n  \u003cversion\u003e0.4.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n-----\n\nSimply wrap your `DataSource` with a `JfrDataSource`\n\n```java\nnew JfrDataSource(dataSource)\n```\n\nIf you use `Driver` simply prefix your JDBC URL with `\"jfr:\"` for example use `\"jdbc:jfr:h2:mem:\"` instead of `\"jdbc:h2:mem:\"`.\n\nThe project is a Java module with the name `com.github.marschall.jfr.jdbc`.\n\nImplementation/Overhead\n-----------------------\n\nThe implementation is based around wrapper objects.\n\n* no reflection\n* no string concatenation\n\nCaveats\n-------\n\n- does not work with Oracle explicit statement caching\n- does not work with unwrapped objects\n- does not work with implicitly closed objects\n- does not work with cached statements provided by a connection pool\n- only accessing the first warning is instrumented, accessing the following ones is not\n- reconstructing the JDBC call time and row count is not super reliable especially in the case for more exotic row iteration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fjfr-jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarschall%2Fjfr-jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fjfr-jdbc/lists"}