akka-persistence-r2dbc
akka-persistence-r2dbc copied to clipboard
H2 should not be selecting db timestamp
No point since we are anyway in-process, in H2Dialect we do:
override def adaptSettings(settings: R2dbcSettings): R2dbcSettings = {
val res = settings
// app timestamp is db timestamp because same process
.withUseAppTimestamp(true)
.withDbTimestampMonotonicIncreasing(true)
res
}
But when looking into logs for a test using projections I still see repeated /*SQL #:1*/SELECT CURRENT_TIMESTAMP; so the adapted settings is not used/not applied somewhere.