centowen / salsa

MIT License
2 stars 1 forks source link

Add simple bookings "database" #47

Closed freidrichen closed 1 year ago

freidrichen commented 1 year ago

The database consists of a json-file protected behind an RwLock. Will almost certainly need to be changed into a real database at some point but this is good for now.

The database is generic over the stored type so can be used for storing more/other things in the future.

For better ergonomics when developing, I need to add a fallback if the database file is missing. That's why this is marked as a draft PR.