qmetrics.net

Exposed

Kotlin SQL library with typesafe DSL and DAO API

Exposed screenshot

Exposed offers JDBC and R2DBC database access for Kotlin through a typesafe query DSL and an optional DAO layer across major SQL engines.

Overview

Exposed is a lightweight Kotlin SQL library that sits above JDBC or R2DBC drivers. Teams can express queries with a typesafe domain-specific language or map tables to objects through a Data Access Object API, switching styles within one project when needed.

Core modules split responsibilities: exposed-core hosts DSL primitives, exposed-jdbc and exposed-r2dbc provide transport implementations, and exposed-dao layers optional ORM helpers (with an experimental R2DBC DAO module). Extension modules add JSON columns, encrypted fields, JavaMoney types, schema migration helpers, and Spring transaction integration.

The project supports H2, PostgreSQL, MySQL, SQLite, Oracle, and other engines, aiming to reduce lock-in when swapping databases. Spring Boot and Ktor integrations are documented for framework users, and JetBrains maintains the library for its own products.

Migrations can be managed through dedicated JDBC or R2DBC migration modules built on shared core logic. Requirements vary by module, with newer Spring integrations expecting newer JDK releases while most modules remain compatible with older Java versions.

Key features

  • Typesafe SQL DSL queries
  • Optional DAO object mapping
  • JDBC and R2DBC driver support
  • JSON and encrypted column types
  • Schema migration helper modules
  • Spring transaction integration
  • Multi-database engine compatibility
  • Spring Boot and Ktor support

Use cases

  • Kotlin server database access
  • Type-safe reporting queries
  • ORM-style CRUD in Kotlin apps
  • Reactive R2DBC data layers
  • Portable SQL across databases

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