# JetBrains/Exposed

Kotlin SQL Framework

Repository: https://github.com/JetBrains/Exposed
Canonical: https://ross.abutalabs.com/products/exposed
Homepage: https://www.jetbrains.com/exposed/
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: kotlin, sql, dao, orm
Last push: 2026-08-26T12:57:05+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4782, "days_push": 7, "days_rel": 7, "gap_med": 33, "n_releases_24m": 24}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9281, forks 796 (observed 2026-08-28T04:10:30.268089+00:00)

## What it is
Exposed is JetBrains' lightweight SQL library and ORM framework for Kotlin, offering a typesafe SQL-wrapping DSL and a lightweight DAO API on top of JDBC and R2DBC drivers. It is database-agnostic, supporting PostgreSQL, MySQL, MariaDB, Oracle, SQLite, H2, and more, with built-in Spring Boot and Ktor integration.

## Use cases
- query a SQL database from Kotlin with type safety
- map database tables to Kotlin objects with an ORM
- write database-agnostic Kotlin code that can switch between PostgreSQL and MySQL
- build CRUD operations in a Ktor or Spring Boot backend
- construct SQL queries with a typesafe DSL instead of raw SQL strings
- use R2DBC for reactive database access in Kotlin

## When to choose
- you are writing a Kotlin/JVM application that needs SQL database access
- you want compile-time-safe queries that survive refactoring and reduce SQL injection risk
- you want a lightweight ORM with both DSL and DAO styles
- you use Spring Boot or Ktor and want first-class integration

## When to avoid
- you are not using Kotlin or the JVM
- you need a full-featured heavyweight ORM with advanced features like multi-level caching or complex lazy loading
- you work with databases outside the supported list (H2, MariaDB, MySQL, Oracle, PostgreSQL, SQLite)
- you prefer writing raw SQL or using a lightweight query builder without ORM concepts

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver, serialization
- domain: databases, backend, web-development, developer-tools
- platform: jvm, cross-platform
- tags: kotlin, sql, dsl, dao, jdbc, r2dbc, spring-boot, ktor, database-agnostic

## Member repositories
- JetBrains/Exposed (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:30.268089+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:22:34.098897+00:00, confidence not recorded.
  - readme: https://github.com/JetBrains/Exposed (fetched 2026-08-28T04:10:30.268089+00:00, sha 6c94ab069f32)
  - homepage: https://www.jetbrains.com/exposed/ (fetched 2026-08-29T08:22:48.802887+00:00, sha 9852c39bf3ab)
  - site_page: https://www.jetbrains.com/legal/docs/privacy/privacy (fetched 2026-08-29T08:22:48.820128+00:00, sha 5818b25a9c36)
  - site_page: https://www.jetbrains.com/legal/docs/company/useterms (fetched 2026-08-29T08:22:48.823266+00:00, sha 4a140f196063)
  - site_page: https://www.jetbrains.com/help/exposed/home.html (fetched 2026-08-29T08:22:48.812867+00:00, sha 345a2db00998)
  - site_page: https://www.jetbrains.com/store (fetched 2026-08-29T08:22:48.815002+00:00, sha d0c97d92d60b)
  - site_page: https://www.jetbrains.com/help (fetched 2026-08-29T08:22:48.816734+00:00, sha 001d63ab7dbc)
  - site_page: https://www.jetbrains.com/company (fetched 2026-08-29T08:22:48.818389+00:00, sha e00f97094d79)
- Data as of 2026-08-30T08:39:29.467469+00:00.
