Ktorm is a lightweight and efficient ORM Framework for Kotlin directly based on pure JDBC. It provides strong-typed and flexible SQL DSL and convenient sequence APIs to reduce our duplicated effort on database operations. All the SQL statements, of course, are generated automatically. Ktorm is open source and available under the Apache 2.0 license, and its code can be found on GitHub. Please leave a star if you’ve found this library helpful: kotlin-orm/ktorm
- No configuration files, no XML, no annotations, even no third-party dependencies, lightweight, easy to use.
- Strong typed SQL DSL, exposing low-level bugs at compile time.
- Flexible queries, fine-grained control over the generated SQLs as you wish.
- Entity sequence APIs, writing queries via sequence functions such as
sortedBy, etc., just like using Kotlin’s native collections and sequences.
- Extensible design, write your own extensions to support more operators, data types, SQL functions, database dialects, etc.
- 2020-10-08 Ktorm 3.2 Released, Package Name Changed to org.ktorm NEW
- 2020-09-19 Ktorm 3.1 Released, Upgrade to Kotlin 1.4 & Many Other Optimizations
- 2020-06-17 Ktorm 3.0 Released with the New ktorm-global Module
- 2020-02-01 Ktorm 2.7 Released, Deprecate Database.global, Making APIs More Intuitive and Easier to Extend
- 2019-08-24 Ktorm 2.5 Released, Support Defining Entities as Any Kind of Classes, Such as Data Class or POJO
- 2019-06-28 Ktorm - Write Your Database Operations in Kotlin Style
- 2019-05-04 Still Using MyBatis? Try Ktorm, an ORM Framework for Kotlin!
Setting up Ktorm and starting up.
API documents for Ktorm's classes and functions.