+0
Daily
9,304
stars
806
forks
128
watchers
1,681
prs
1,324
issues
74
releases
README
Welcome to Exposed, an ORM framework for Kotlin. Exposed is a lightweight SQL library on top of a database connectivity driver for the Kotlin programming language, with support for both JDBC and R2DBC (since version 1.0.0-) drivers. It offers two approaches for database access: a typesafe SQL-wrapping Domain-Specific Language (DSL) and a lightweight Data Access Object (DAO) API. Our official mascot is the cuttlefish, which is well-known for its outstanding mimicry ability that enables it to blend seamlessly into any environment. Similar to our mascot, Exposed can be used to mimic a variety of database engines, which helps you to build applications without dependencies on any specific database engine and to switch between them with very little or no changes. Supported Databases - H2 (versions 2.x) - - - - (Also, PostgreSQL using the pgjdbc-ng JDBC driver) - (JDBC only) - - Dependencies Releases of Exposed are available in the Maven Central repository. For details on how to configure this repository and how to add Exposed dependencies to an existing Gradle/Maven project, see the full guide on modules. Exposed modules Exposed consists of the following core modules: | Module | Function | |---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | exposed-core | Provides the foundational components and abstractions needed to work with databases in a type-safe manner and includes the Domain-Specific Language (DSL) API | | exposed-dao | (Optional) Allows you to work with the Data Access Object (DAO) API. It is only compatible with exposed-jdbc; with exposed-r2dbc, use exposed-dao-r2dbc instead. | | exposed-dao-r2dbc | (Optional) Allows you to work with the Data Access Object (DAO) API over exposed-r2dbc. It is an experimental preview, so its API may change between releases. | | exposed-jdbc | Provides support for Java Database Connectivity (JDBC) with a transport-level implementation based on the Java JDBC API | | exposed-r2dbc | Provides support for Reactive Relational Database Connectivity (R2DBC) | As well as the following extension modules: | Module | Function | |--------------------------------|-----------------------------------------------------------------------------------------------------------------------
Top issues
#24Support natively data classes + repository based DAO34 comments · 2016-03-19#635Kotlin/Native support31 comments · 2019-09-05#497Proper way to serialize/deserialize DAOs entities.22 comments · 2019-02-18#683Postgres column names are case sensitive (uppercase / lowercase)17 comments · 2019-11-08#1586Inner suspended transaction doesn't roll back when outer transaction throws16 comments · 2022-09-03#500Adding distinct on to PostgreSQL13 comments · 2019-02-21#547Exception is printed even when exception is caught12 comments · 2019-04-15#306Is there any way to execute pure queries in auto-commit mode?12 comments · 2018-05-16
Discussions
Latest release
1.6.1 1.6.1 2026-11-04Change log New Contributors @chiliec made their first contribution in https://github.com/JetBrains/Exposed/pull/2968 @mikehancock made their first contribution in https://github.com/JetBrains/Exposed/pull/2950 @ybai08 made their first contribution in https://github.com/JetBrains/Exposed/pull/2976 @bbasinsk made their first contribution in https://github.com/JetBrains/Exposed/pull/2913 @Inf1mum made their first contribution in https://github.com/JetBrains/Exposed/pull/2977