ktorm
ktorm copied to clipboard
A lightweight ORM framework for Kotlin with strong-typed SQL DSL and sequence APIs.
Since 3.24 SQLite supports [upsert like postgres does](https://www.sqlite.org/lang_UPSERT.html). Consider adding it to SQLite dialect?
``` @Introspected data class EmployeeDTO( val id: Long, val name: String ) val result = database.from(Employees).select(EmployeeDTO::class) ``` This will reduce the boilerplate code that can be deducted from table schema....
Schema example: ``` interface FinancialAccount : Entity { companion object : Entity.Factory() val accNumber: Long val finInst: FinancialInstitution? val finAccType: FinancialAccountType? } interface FinancialTransaction : Entity { companion object :...
Any plans on the roadmap to support date addition, such as `mydateval + interval '7 days'` (postgres syntax)? A common use case is to purge records older than a certain...
Hi, I'm attempting to use a `UNION` in a subquery, and that is leading to a syntax error when executing the query against a Sqlite backend. Based on attempting to...
This request was hidden under another issue in [this comment](https://github.com/vincentlauvlwj/Ktorm/issues/45#issuecomment-533135132). I'm creating its own dedicated ticket. From the comment: > I was doing some reading on how people solve this...
for example ` Ts.update { it.companyTaxNo to companyTaxNo where { it.userId eq userId and it.deleted eq false } } ` The format sql is 'where ((user_id=?) and is_deleted)=?'。 In mysql,...
I tried hacking the code to do a computed column, but I didn't figure out how yet.