Mercurial > hg > Feedworm
annotate COUCHDB.txt @ 118:0e73adb2dec4 backend
branch for extracting backends
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 21 Aug 2011 02:47:25 +0200 |
parents | dc0a82841a60 |
children |
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 |