comparison COUCHDB.txt @ 117:dc0a82841a60

add design document for couchdb backend
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 21 Aug 2011 02:44:13 +0200
parents
children
comparison
equal deleted inserted replaced
116:7f07ced80d6f 117:dc0a82841a60
1 Idea for a couchdb backend
2
3 - one database "feedworm"
4 - type attribute for the different document types: 'feed', 'feedEntry', 'preference'
5 - a view for unread feedEntries, keyed by feed id
6 - get unread feedEntries from that view, use feed id as query parameter
7
8 doc = { "type" : "feedEntry", "feed" : "48c74f2b70c85862f217c05c5f0d5c91", "link" : entry.link, "title" : entry.title, "summary" : entry.summary, "read" : False, "updated" : entry.updated}
9
10 curl -X GET 'http://localhost:5984/todo/_design/todo/_view/unfinished?key="iObjects"'
11