-
Notifications
You must be signed in to change notification settings - Fork 35
Fix Room implementation and Koin DatabaseModule integration #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package template.core.base.database | ||
|
|
||
| import kotlin.reflect.KClass | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class BuiltInTypeConverters actual constructor() | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class AutoMigration actual constructor( | ||
| actual val from: Int, | ||
| actual val to: Int, | ||
| actual val spec: KClass<*>, | ||
| ) | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class Junction actual constructor( | ||
| actual val value: KClass<*>, | ||
| actual val parentColumn: String, | ||
| actual val entityColumn: String, | ||
| ) | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class Index | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class ForeignKey actual constructor( | ||
| actual val entity: KClass<*>, | ||
| actual val parentColumns: Array<String>, | ||
| actual val childColumns: Array<String>, | ||
| actual val onDelete: Int, | ||
| actual val onUpdate: Int, | ||
| actual val deferred: Boolean, | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| package template.core.base.database | ||
|
|
||
| import kotlin.reflect.KClass | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class BuiltInTypeConverters actual constructor() | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class AutoMigration actual constructor( | ||
| actual val from: Int, | ||
| actual val to: Int, | ||
| actual val spec: KClass<*>, | ||
| ) | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class Junction actual constructor( | ||
| actual val value: KClass<*>, | ||
| actual val parentColumn: String, | ||
| actual val entityColumn: String, | ||
| ) | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class Index | ||
|
|
||
| @Target(allowedTargets = []) | ||
| @Retention(value = AnnotationRetention.BINARY) | ||
| actual annotation class ForeignKey actual constructor( | ||
| actual val entity: KClass<*>, | ||
| actual val parentColumns: Array<String>, | ||
| actual val childColumns: Array<String>, | ||
| actual val onDelete: Int, | ||
| actual val onUpdate: Int, | ||
| actual val deferred: Boolean, | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * Copyright 2026 Mifos Initiative | ||
| * | ||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| * file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
| * | ||
| * See See https://github.com/openMF/kmp-project-template/blob/main/LICENSE | ||
| */ | ||
| package org.mifos.core.database.di | ||
|
|
||
| import org.koin.dsl.module | ||
|
|
||
| actual val platformModule = module { | ||
| // EMPTY — no DB on Js | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||
| /* | ||||||
| * Copyright 2026 Mifos Initiative | ||||||
| * | ||||||
| * This Source Code Form is subject to the terms of the Mozilla Public | ||||||
| * License, v. 2.0. If a copy of the MPL was not distributed with this | ||||||
| * file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||||||
| * | ||||||
| * See See https://github.com/openMF/kmp-project-template/blob/main/LICENSE | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same duplicate-word typo in license comment as in the JS counterpart.
✏️ Proposed fix- * See See https://github.com/openMF/kmp-project-template/blob/main/LICENSE
+ * See https://github.com/openMF/kmp-project-template/blob/main/LICENSE📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| */ | ||||||
| package org.mifos.core.database.di | ||||||
|
|
||||||
| import org.koin.dsl.module | ||||||
|
|
||||||
| actual val platformModule = module { | ||||||
| // EMPTY — no DB on WasmJs | ||||||
| } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate word in license comment.
See Seeshould beSee.✏️ Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents