akkadotnet / Akka.Persistence.Sql

Linq2Db implementation of Akka.Persistence.Sql. Common implementation for SQL Server, Sqlite, Postgres, Oracle, and MySql.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add TimeStampProvider support

to11mtm opened this issue · comments

commented

Adding Support for a mechanism similar to ITimestampProvider in Akka.Persistence.Sql.Common will be useful to some users that wish to have timestamps in a format other than .NET DateTime Ticks (i.e. Unix epoch instead)

Ideally, we should try to use a base/abstract class instead of an Interface, or at least benchmark the difference between the two; Reason for this is on high velocity systems, cost of interface calls on reading/writing events may have an impact instead of a simple virtual call.

Or for people wanting to use Noda Instant types