qmetrics.net

jOOQ

Type-safe SQL DSL and codegen for Java

jOOQ screenshot

jOOQ models SQL as a type-safe Java API with a code generator from database metadata. It targets JDBC-backed relational databases with dialect support and compile-time checks.

Overview

jOOQ is a Java library that embeds SQL as an internal domain-specific language so queries are built and checked through the Java compiler. It generates Java types from your database schema and keeps application code aligned when tables, columns, or routines change.

The main workflow combines a source code generator with a fluent DSL for constructing static and dynamic SQL. Secondary capabilities mentioned in the materials include DAOs, data import and export, type conversion, DDL and DML helpers, diagnostics, and support for many SQL dialects.

Beyond basic querying, jOOQ documents features such as active records for CRUD, multitenancy via schema and table overrides, SQL translation across dialects, hooks into the SQL lifecycle, stored procedures, reactive access via R2DBC, and nested collections through MULTISET and ROW types. Kotlin and Scala integrations are also listed.

The product is positioned around a database-first model: you write SQL-oriented Java rather than letting an ORM own the schema. Generated metadata enables IDE completion for SQL syntax and schema identifiers and catches identifier typos and type mismatches at compile time.

Key features

  • Database metadata code generation
  • Type-safe SQL DSL API
  • Support for many RDBMS dialects
  • Dynamic SQL construction
  • Active record style CRUD records
  • Stored procedure embedding
  • SQL parsing and translation
  • Schema diff and multitenancy options

Use cases

  • Type-safe Java SQL in JDBC applications
  • Database-first application development
  • Cross-database SQL with dialect transformation
  • Complex nested queries with generated types
  • CRUD without hand-writing repetitive SQL

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app