Postgres EventStore::SourceId type should be ToString
ar3s3ru opened this issue · comments
Danilo Cianfrone commented
The EventStore::SourceId
type in eventually-postgres
has the following bound:
However, the aggregate_id
field in the table is stored as a VARCHAR
:
Given that requiring ToSql
trait from the SourceId
would leak an implementation detail/concern into the domain layer (which should remain impartial to the underlying storage technology adopted), the bound should instead be ToString
.