ktorm
ktorm copied to clipboard
A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.
This resolved #556
如何记录SQL耗时的日志,尝试实现框架提供的接口,但是只有debug,info等实现函数
不管是使用ksp方式,还是BaseTable,在进行操作的时候,如何自动填充公共字段,比如createTime . updateTime, 这类的公共字段,而不用每次操作都需要手动去写一遍,框架是否有拦截器 或者 注解之类的方式?
#32 在该场景下,通过KSP生成代码,如何让生成的代码继承AuditTable?
Does KTORM provide conversion between global column names and entity variables instead of adding annotations to each variable
kotlinx-datetime是kotlin版本的日期时间库,希望能够支持以下类: `kotlinx.datetime.LocalDateTime` `kotlinx.datetime.LocalDate` `kotlinx.datetime.LocalTime` 虽然可以自定义以下`SqlType`实现,但更适合集成到ktorm的库里(包括ksp): ```kotlin import kotlinx.datetime.LocalDateTime import kotlinx.datetime.LocalDate import kotlinx.datetime.LocalTime /** * [SqlType] implementation represents `datetime` SQL type. */ public object LocalDateTimeSqlType : SqlType(Types.TIMESTAMP, "datetime") { override fun...
我按照 https://github.com/kotlin-orm/ktorm/releases/tag/v4.0.0 的配置,换成4.1.1去进行ksp实体代码生成. 8个实体,ksp编译花了 03:44 min ,Entity是独立项目,只有8个实体类的编译,不含其他业务代码和测试代码. 想问下这算是正常情况吗? I followed the configuration at https://github.com/kotlin-orm/ktorm/releases/tag/v4.0.0 and switched to version 4.1.1 for KSP entity code generation. It took 03:44 min to compile...