# Exposed

> The SQL library for Kotlin

Source: https://talira.ai/catalog/exposed-ysjjkzs5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / kotlin](https://talira.ai/categories/languages/kotlin)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [JetBrains](https://talira.ai/orgs/jetbrains.md)

Exposed is JetBrains' lightweight SQL library and ORM for [Kotlin](https://talira.ai/catalog/kotlin-vrmcrayv.md), running on top of a JDBC or R2DBC driver. It offers two ways to work with a database: a typesafe DSL that wraps SQL, and a lightweight Data Access Object (DAO) API. It supports H2, MariaDB, MySQL, Oracle, PostgreSQL, Amazon Redshift (JDBC only), Microsoft SQL Server and SQLite, so an application can switch database engines with little or no change. Extension modules add encrypted columns, date-time types, JSON and JSONB, money types, schema migration utilities and starters for [Spring Boot](https://talira.ai/catalog/spring-boot-5qzjdf5y.md) 3 and 4.

## Links

- Website: https://www.jetbrains.com/exposed/
- GitHub: https://github.com/JetBrains/Exposed
- Docs: https://www.jetbrains.com/help/exposed/home.html

## Problems it solves

- query a SQL database from Kotlin with type checking instead of raw SQL strings
- map Kotlin objects to database tables without a heavy ORM
- switch my Kotlin app between PostgreSQL, MySQL and SQLite without rewriting queries
- use reactive database access in a Kotlin backend

## Features

- typesafe SQL DSL
- lightweight DAO API
- JDBC and R2DBC drivers
- H2, MariaDB, MySQL, Oracle, PostgreSQL, Redshift, SQL Server and SQLite
- schema migration utilities
- encrypted and hashed column types
- JSON and JSONB column types
- Spring Boot 3 and 4 starters

## Limitations

- Requires Kotlin 2.2 or newer[^1]
- The DAO API over R2DBC is an experimental preview whose API may change between releases[^1]

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 1.00, adoption 0.79, momentum 0.54, community 0.97, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 68 commits in the last 90 days
- latest release 1.6.1 25 days ago
- 9.3k GitHub stars
- 258 contributors
- backed by JetBrains

## Related

- Works with [Spring Boot](https://talira.ai/catalog/spring-boot-5qzjdf5y.md)

## Alternatives

- [jOOQ](https://talira.ai/catalog/jooq-syq7be6j.md): Typesafe SQL query builder and code generator for Java
- [sqlc](https://talira.ai/catalog/sqlc-7w8h0kzr.md): Compile SQL to type-safe code
- [Slick](https://talira.ai/catalog/slick-q0ye0vc9.md): Functional Relational Mapping for Scala
- [WCDB](https://talira.ai/catalog/wcdb-w67kjrkk.md): WeChat's cross-platform mobile database framework on SQLite

## Sources

[^1]: https://github.com/JetBrains/Exposed/blob/main/README.md (checked 27 Nov 2026)
[^2]: https://github.com/JetBrains/Exposed/blob/main/LICENSE.txt (checked 27 Nov 2026)
