ktorm
ktorm copied to clipboard
A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.
Would be great if README.md documented how to run DDLs; it would help running an example code quickly on a H2 in-memory database. I only found `database.executeUpdate()` but I have...
so we can build bitAnd sql like follow: ``` SELECT * FROM Note WHERE ((Note.feature & ?) = ?) ```
Currently, there are no operators like bitAnd or bitOr. The following is my usage in the Android Room framework, for example, `feature & 0x0001 equals 0x0001`. I want to use...
For example: ```kotlin @Table interface Employee: Entity { var id: Long var name: String @Deprecated("Use name instead.") var nickname: String } ``` The generated file should look like: ```kotlin //...
Similar to the `like` operator, but case-insensitive. Could be implemented as-is by using the `ILIKE` SQL operator, or could be emulated by using the `LOWER()` SQL function: `Persons.name.lower().like("foo%")`.