annotate COUCHDB.txt @ 152:a1c0459e1eeb

rename some methods
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 27 Aug 2011 07:11:08 +0200
parents dc0a82841a60
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
117
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 Idea for a couchdb backend
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 - one database "feedworm"
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 - type attribute for the different document types: 'feed', 'feedEntry', 'preference'
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 - a view for unread feedEntries, keyed by feed id
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 - get unread feedEntries from that view, use feed id as query parameter
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 doc = { "type" : "feedEntry", "feed" : "48c74f2b70c85862f217c05c5f0d5c91", "link" : entry.link, "title" : entry.title, "summary" : entry.summary, "read" : False, "updated" : entry.updated}
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 curl -X GET 'http://localhost:5984/todo/_design/todo/_view/unfinished?key="iObjects"'
dc0a82841a60 add design document for couchdb backend
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11