-
Notifications
You must be signed in to change notification settings - Fork 178
Abstract persistence into Store classes -- FileStore and CouchStore. #204
Conversation
CouchDB stores similarly to the file system, using the path *relative* to the application root as the key, and the file content as the value, base64 encoded for binary data.
Side note: there is one test that fails on my (OSX) machine -- it was failing prior to cutting my branch as well:
|
…- use @@app_root to share across class hierarchy
Good to chat tonight. I incorporated the changes that came up, plus a few other minor improvements. Tests pass (except for the unrelated |
I'll do some testing on this tomorrow and get it wrapped up by the end of the weekend. |
I created two test apps:
Both seem to work well in every smoke test I can think of:
Conclusion: ready to pull. |
Fixed a bug that effected the couch version. |
Happy to have this code in the project. Thanks so much for your efforts. |
Thanks Ward. It's great to be working on a project I believe in so strongly. |
CouchDB stores data as similarly as possible to the file system pattern, using the path (relative to the application root) as the key, and the file content as the value. Values are base64 encoded in the case of binary data like favicons.