|
|
@ -34,21 +34,12 @@ interface BookSourceDao { |
|
|
|
@Query("select count(*) from book_sources") |
|
|
|
@Query("select count(*) from book_sources") |
|
|
|
fun allCount(): Int |
|
|
|
fun allCount(): Int |
|
|
|
|
|
|
|
|
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
|
|
|
|
fun insert(bookSource: BookSource): Long |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
@Insert(onConflict = OnConflictStrategy.REPLACE) |
|
|
|
fun insert(vararg bookSource: BookSource) |
|
|
|
fun insert(vararg bookSource: BookSource) |
|
|
|
|
|
|
|
|
|
|
|
@Update |
|
|
|
|
|
|
|
fun update(bookSource: BookSource) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Update |
|
|
|
@Update |
|
|
|
fun update(vararg bookSource: BookSource) |
|
|
|
fun update(vararg bookSource: BookSource) |
|
|
|
|
|
|
|
|
|
|
|
@Delete |
|
|
|
|
|
|
|
fun delete(bookSource: BookSource) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Delete |
|
|
|
@Delete |
|
|
|
fun delete(vararg bookSource: BookSource) |
|
|
|
fun delete(vararg bookSource: BookSource) |
|
|
|
|
|
|
|
|
|
|
|