iLoveTux / data_store

a simple mongo-esque data_store.
GNU General Public License v2.0
0 stars 1 forks source link

API needs to be re-done. #7

Closed iLoveTux closed 9 years ago

iLoveTux commented 9 years ago

I was just looking at this, and I realized that it's just all wrong...Ill redesign and post back here.

iLoveTux commented 9 years ago

I think I mostly have this one handled in commit 85dd53189fc1dd0f40e7ba6c9c0a66179e248e53, but the only thing is that there is currently no way to persist the DataStores used by the api.

I believe that the best option is to default a filename and persist after any data-changing action (ie whenever anyone adds/removes a record or a collection it will be persisted) This would facilitate a first-come/first-served methodology.

The filename should probably default to something like "./shared_stores.db" and you would be able to over-ride it by changing data.store.api.filename.

The tricky part will be writing tests for this feature...If anyone has any ideas, comments or if you feel like I'm doing it wrong, please don't hesitate to submit an issue here on github, but I will leave this issue open until I figure out how I'm going to do this that way anyone can comment here if it pertains to this issue.

iLoveTux commented 9 years ago

This issue will resolve itself when basic auth is implemented and each user is given his/her own shelf. I am closing this issue.