-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix replication of nullable primitive fields.
- Loading branch information
1 parent
9e821ef
commit 03775f8
Showing
10 changed files
with
123 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
door-runtime/src/commonMain/kotlin/com/ustadmobile/door/replication/JsonDbFieldInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.ustadmobile.door.replication | ||
|
||
interface JsonDbFieldInfo { | ||
|
||
val fieldName: String | ||
|
||
/** | ||
* The SQL field type used in the database eg. INTEGER, BIGINT, etc as per TypesKmp | ||
*/ | ||
val dbFieldType: Int | ||
|
||
val nullable: Boolean | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
...untime/src/commonMain/kotlin/com/ustadmobile/door/replication/ReplicationFieldMetaData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.ustadmobile.door.replication | ||
|
||
import kotlin.reflect.KClass | ||
|
||
/** | ||
* @param dbFieldType constant as per TypesKmp | ||
* @param nullable | ||
*/ | ||
data class ReplicationFieldMetaData( | ||
val fieldName: String, | ||
val fieldType: Int //as per TypesKmp | ||
) { | ||
} | ||
override val fieldName: String, | ||
override val dbFieldType: Int, | ||
override val nullable: Boolean, | ||
): JsonDbFieldInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters