Mercurial > hg > Feedworm
annotate COUCHDB.txt @ 177:98eaf0075a44
make setup.sh work with non-local coucdhb URLs
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 10 Sep 2011 03:09:17 +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 |