Kotlin Development: JetBrains releases Exposed 1.0 and Ktor 3.4
Exposed has reached the 1.0 milestone. The SQL library for Kotlin now has R2DBC support and improved performance.
(Image: Color4260/Shutterstock.com)
JetBrains has released Exposed 1.0, an SQL library for the Kotlin programming language, from the same manufacturer. It can be used with the Kotlin web framework Ktor, which has appeared in a new minor version.
Exposed 1.0 allows choice between JDBC and R2DBC
The lightweight SQL library is based on a Java Database Connectivity (JDBC) driver for Kotlin. Exposed 1.0 marks the first stable release and can handle R2DBC (Reactive Relational Database Connectivity) drivers in addition to JDBC. According to JetBrains, R2DBC support was a frequently requested feature from the community and allows developers to choose between traditional and reactive database access models.
(Image:Â cobobayangno/123rf)
The online conference betterCode() Kotlin will showcase new developments for the programming language on February 24th and 25th and feature deep dives. The first day focuses on mobile and cross-platform development. The second day presents new features of the programming language and provides insight into the Koog framework for AI agents.
Exposed offers database access via a Domain-Specific Language (DSL) API as well as a Data Access Object (DAO) API. The former contains a Kotlin-based abstraction for interacting with databases, while the DAO API follows an object-oriented approach, similar to ORM frameworks like Hibernate.
Further updates in v1.0 include improved performance and bug fixes. The currently supported databases are H2 (in version 2.x), MariaDB, MySQL, Oracle, PostgreSQL (also when using the JDBC driver pgjdbc-ng), Microsoft SQL Server, and SQLite. More information about the new release is available on the JetBrains blog and in the Exposed documentation.
Examples for the use of Exposed 1.0 are available on GitHub for the web frameworks Ktor and Spring Boot.
Videos by heise
Ktor 3.4 allows OpenAPI generation from code
Ktor has also reached a new version: The release with version number 3.4 enables OpenAPI documentation creation from code using an experimental describe API, which serves for dynamic endpoint documentation. The API works together with a new compiler plugin.
Details about these and other new features in Ktor 3.4 can also be found on the JetBrains blog.
(mai)