mboudreau / Alternator

A mock DynamoDB that runs locally for testing purposes - DEPRECATED, PLEASE USE DYNAMODB LOCAL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Apache License 2.0
78 stars 39 forks source link

Possibility to persist data #32

Closed aluedeke closed 12 years ago

aluedeke commented 12 years ago

Hi,

first of all thx for the great work. We are using Alternator as Development and Testing DB for testobject.com.

We would like to have optional persistent storage. Which means saving the db content during shutdown and reloading during boot. This helps a lot to prevent stupid work (like creating new users each an every time).

If this feature isn't planned for the near future we might contribute such feature if you are interested.

Best Regards

Andreas

mboudreau commented 12 years ago

I completely agree. We've had the same problem but haven't had the time to implement it.

I think that on shutdown we should dump everything into a JSON file that can then be read when restarting the server.

If you want to take a stab at it, go right ahead :)

mboudreau commented 12 years ago

Implemented in 0.2.7-SNAPSHOT.