SQLlin
SQLlin copied to clipboard
How to nore the columns in model
example:
@DBRow(tableName = "memo")
@Serializable
data class Memo(
val id: Long,
val createdTs: Long,
val creatorId: Long,
var content: String,
@DbIgnore //ignore the colume
val resourceList: MutableList<Resource> = mutableListOf()
)
Now, you can't ignore any property in the model, I am considering to support this feature in the future.
Hi, after version 1.3.2, you can use kotlinx.serialization.Transient to ignore properties in your models.