ktorm icon indicating copy to clipboard operation
ktorm copied to clipboard

A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.

Results 116 ktorm issues
Sort by recently updated
recently updated
newest added

Ktorm Version: 3.5.0 Source File: org/ktorm/dsl/Query.kt Line: 398 Function definition: ``` public fun Query.limit(offset: Int?, limit: Int?): Query { return this.withExpression( when (expression) { is SelectExpression -> expression.copy( offset =...

bug

Database: mariadb The code below throws an error: ``` db.batchInsert(PlayerKeys) { for(playerKey in batchInsertList) { item { set(it.crateId, playerKey.crate.id) set(it.amount, playerKey.amount) set(it.uuid, playerKey.uuid) } } } ``` Table object: ```...

bug

### Demo project https://github.com/Lisooo790926/Koin_Ktor_Test ### Background: 我們使用Ktorm (Database ORM) + Koin (IOC container) 來實作我們的DAO, 如下 ``` class TestDao : KoinComponent { private val dataSource: DataSource by inject() private val database...

It would be awesome if Ktorm could be non-blocking and reactive by leveraging R2DBC instead of JDBC exposed via Coroutines and its `Flow` API instead of `Sequence`.

enhancement

```kotlin val d = Departments.aliased("d") val e = Employees.aliased("e") database.update( d ) { set(d.location, "localtion1") where { exists(database.from(e) .select(e.id) .whereWithConditions { it.add(e.name eq d.name) it.add(e.id eq 1) } ) }...

bug

Is there any support for creating tables from a Ktorm schema? Or do tables have to be manually created using direct SQL commands?

enhancement

- 数据库`PostgreSQL14` - Gradle: ```kts // https://github.com/pgjdbc/pgjdbc implementation("org.postgresql:postgresql:42.4.0") // https://github.com/kotlin-orm/ktorm // https://www.ktorm.org/zh-cn implementation("org.ktorm:ktorm-core:3.5.0") implementation("org.ktorm:ktorm-support-postgresql:3.5.0") // https://github.com/brettwooldridge/HikariCP implementation("com.zaxxer:HikariCP:5.0.1") ``` - 表结构 ```sql CREATE TABLE IF NOT EXISTS public."UserPermission" ( -- Inherited...

bug