dogmatiq / verity

🚧 An event-sourced Dogma engine.
MIT License
2 stars 2 forks source link

Convert persistence items and meta-data, etc to protobuf messages. #180

Open jmalloc opened 4 years ago

jmalloc commented 4 years ago

These types are all intended for persistence and contain primitive types. If we convert them to protocol buffers messages it makes them a lot easier to persist in new provider implementations, and we can do away with the boltdb/internal/pb package which has cut-down PB representations of these types already.

jmalloc commented 4 years ago

Just thought I'd point out that the types used for BoltDB now are cut down from the originals, choosing not to re-persisted data that is already used as bucket-keys, for example. This doesn't necessarily stop us from doing this task, those fields could just be zeroed out to avoid duplicating them in the datastore.