Fixed
Status Update
Comments
ya...@google.com <ya...@google.com>
da...@google.com <da...@google.com> #2
Wondering is there any workaround currently?
ap...@google.com <ap...@google.com> #3
Hi, thanks for trying Room KMP! The current alpha release indeed does not have support yet to use room-paging in a KMP project (in non-Android targets). We are working on having it available in upcoming releases and we'll update
da...@google.com <da...@google.com>
ys...@gmail.com <ys...@gmail.com> #4
nn...@gmail.com <nn...@gmail.com> #5
#4 Sorry I don't get it. The key point is it couldn't generate the PagingSource from DAO, how do you connect with kmp-paging?
Description
@Entity
data class User(
@PrimaryKey id: Long,
name: String,
email: String?
)
data class UserName(id: Long, name: String)
data class UserEmail(id: Long, email: String)
@Dao
interface UserDao {
@Insert(entity = User::class)
insertWithoutEmail(userName: UserName)
@Update(entities = User::class)
updateEmail(userEmail: UserEmail)
}
- The @Insert example above is a bit silly, but it makes sense when you want to leave out columns with default values (
- We probably need a better API to support insertion/update of multiple entities/pojos.