Skip to content

Commit

Permalink
Added CouchDB views
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmpage committed Jun 24, 2016
1 parent f4056d3 commit b47ce00
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 3 deletions.
12 changes: 9 additions & 3 deletions couchdb-design/geo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function (doc) {
if (doc.geometry && doc.geometry.coordinates) {
st_index(doc.geometry);
{
"_id": "_design/geo",
"_rev": "4-9f029d0a73284c772a8af9992891c14a",
"views": {},
"language": "javascript",
"st_indexes": {
"newGeoIndex": {
"index": "function (doc) {\n if (doc.geometry && doc.geometry.coordinates) {\n st_index(doc.geometry);\n }\n}"
}
}
}
10 changes: 10 additions & 0 deletions couchdb-design/graph.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions couchdb-design/highwire.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions couchdb-design/tags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b47ce00

Please sign in to comment.