# sagacity-sqltoy

Java ORM alternative to MyBatis &amp; Hibernate: JPA-style CRUD + SQL-first queries. Dynamic conditions without &lt;if&gt; blocks; one SQL across 25 databases \(auto dialect &amp; function adaptation\); self-optimizing pagination; cache translate \(no dictionary JOINs\); race-proof updateFetch ledgers; sharding, multi-tenancy, data masking. In production since 2008.

Canonical page: https://www.reposhelf.co.uk/projects/github/sagframe/sagacity-sqltoy.html

- Project ID: sagframe/sagacity-sqltoy
- Source: GitHub
- Original project: https://github.com/sagframe/sagacity-sqltoy
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Not recorded
- Licence: Apache-2.0
- Repository availability checked: 2026-11-23T15:30:43.271Z
- Demo page loaded: 2026-11-23T16:38:15.864Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> JPA-style object CRUD + SQL-first querying — one SQL across 25 databases.

> SqlToy is a Java ORM for applications that need both convenient object-based data access and the full power of SQL. Open source and in production since 2008; runs on JDK 17+ with Spring Boot 3/4 \(a JDK 8 line is maintained for legacy systems\), and compiles to a GraalVM Native Image for cloud-native and XinChuang \(domestic-stack\) deployments with instant startup and a minimal memory footprint.

> A 30-second look — optional filters, no branching tags:

- Dynamic SQL without the noise — \#\[and s.name like :name\] is a condition that joins the SQL only when its parameter is set. No / blocks, and the SQL stays copy-paste runnable in any database client.
- Four-layer optimized pagination — intelligent count rewriting, cached counts for identical filters, @fast\(\) page-first joins, and parallel count + fetch.
- Cache translate — resolve codes to names in memory after the query returns; skip the dictionary JOIN on every list page.
- One SQL across 25 databases — automatic function adaptation \(nvl → coalesce/ifnull\), per-dialect sqlId variants, and replay-against-other-databases verification in tests.
- Race-safe ledgers — updateFetch locks the row, updates against its current values and returns the result in a single database interaction.

## Author-documented requirements and audience

> JPA-style object CRUD + SQL-first querying — one SQL across 25 databases.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/sagframe/sagacity-sqltoy/blob/6.0/README.md

Extraction checked: 2026-11-02T23:36:56.414Z

Last recorded source update: 2026-11-23T10:29:43.000Z

Saved release: 6.0.9 — 2026-10-22T17:32:00.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=sagframe%2Fsagacity-sqltoy). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
