Repository navigation
Releases
v0.4.2
Align consumer AGENTS.md to Greg's canonical (Spring PR #40).
- Namespaced jar bake:
META-INF/cockroachdb-java-library/AGENTS.md(shaded-jar collision fix). - Added 'Learn CockroachDB fundamentals' section linking the official CRDB docs (.md variants) + llms.txt.
- AGENTS.md published to the site at /agents/AGENTS.md with an llms.txt; README documents jar + site.
- Examples pinned to 0.4.2.
v0.4.1
Consumer AGENTS.md bundled in the jar
A consumer-facing agent guide is now authored at docs/agents/AGENTS.md and bundled in the published core jar at META-INF/AGENTS.md, so coding agents working in an app that depends on this library can discover it from the classpath.
- New
docs/agents/AGENTS.md(consumer guide:Crdb.tx/@Transactionalauto-retry on 40001,@FollowerRead,@RegionalByRow/@CrdbRegioncolumn homing, CDC, Continuum/MCP, Testcontainers testing). - Baked into the
corejar via aprocessResourcesstep;AgentsMdPackagedTestverifies the artifact actually contains it. - README install pins and AI-agents note updated.
No API changes.
v0.4.0 — JSpecify null-safety
Adopts JSpecify null-safety across the library (mirrors the Spring starter 0.7.0). Every package is @NullMarked, with @Nullable applied where null can occur; NullAway fails the build on a violation (main sources, JSpecify mode).
Behavior note: the public API is now strict about nullness — passing null into a non-@Nullable parameter now throws NPE (intended JSpecify contract); e.g. new RetryExhausted(n, null) now NPEs. org.jspecify:jspecify is now a transitive api dependency.
Install: com.cockroachlabs:cockroachdb-java-library-core:0.4.0
v0.3.0 — multi-region annotation check
Multi-region annotation check
New feature: an explicit startup-time multi-region locality check.
New public annotations (com.cockroachlabs.crdb.annotations)
@GlobalTable— mark an entity as a GLOBAL table@RegionalByRow— mark an entity as REGIONAL BY ROW@CrdbRegion— mark the region-homing column
New API
Crdb.verifyLocality(ds, mode, classes...)— compares your entity annotations against the live schema and reports fix-up SQL for any drift.
Modes: none | warn | validate (default warn). A contradiction between annotations and the live schema fails unless mode=none.
This is an explicit call (verifyLocality), not an auto-startup hook — this library is not Spring, so you invoke the check yourself.
Install
implementation 'com.cockroachlabs:cockroachdb-java-library-core:0.3.0'v0.2.0
cockroachdb-java-library 0.2.0
Behavior change
Checked exceptions from methods annotated with @FollowerRead, @VirtualCluster, @Region, @Workload, @CrdbRetry, or @Transactional(retry=true) now reach the caller as the original instance (previously wrapped in a generic RuntimeException). A method declared throws IOException now throws IOException. RuntimeException/Error unchanged. (#9)
Mirrors cockroachdb-spring-boot-starter 0.5.0. Distribution: anonymous Maven feed (auto-published on merge) + GitHub Packages (this release).
v0.1.2
v0.1.1
First published release of the CockroachDB Java Library.
Maven (GitHub Packages): com.cockroachlabs:cockroachdb-java-library-<module>:0.1.1 (modules: core, continuum, agent, cdc, metrics, ai, testing)
Javadoc: https://cockroachlabs.github.io/cockroachdb-java-library/
Pure-Java, framework-free CockroachDB library: annotation-driven retry / circuit-breaking / transactions via dynamic proxies, plus Cockroach Continuum (Plenum storage insights, vCluster tagging, Aegis, Agent/MCP, Cloud control-plane).