PISAresearch / pisa

Accountable Watching Service
https://pisa.watch
28 stars 9 forks source link

Refactor the type system for the stored objects #393

Closed bigspider closed 4 years ago

bigspider commented 4 years ago

Currently the database is stored as key/value where the type of value is any, which disables basically any type check on values stored in the db. In fact, we have instances of storing objects to the db (like BigNum) that doesn't work well without serializing them first.

We should refactor the type system to make this kind of errors become impossible.