}
}
+ public fun updateFeedDate(feed: Feed) {
+ dataSource.connection.use { conn ->
+ feed.lastUpdate = java.time.LocalDateTime.now()
+ conn.prepareStatement("""
+ update feeds set last_update = ? where feed_id = ?
+ """.trimIndent()).use { stmt ->
+ stmt.setTimestamp(1, java.sql.Timestamp.valueOf(feed.lastUpdate))
+ stmt.setInt(2, feed.id)
+ stmt.execute()
+ }
+ }
+ }
+
public fun updateFeedReadState(feedCollection: FeedCollection, read: Boolean) {
dataSource.connection.use { conn ->
conn.prepareStatement("""