What can I do to share code among views in CouchDB?  Example 1 -- utility methods  Jesse Hallett has some good utility methods, including  function dot(attr) {   return function(obj) {       return obj[attr];   } }  Array.prototype.map = function(fun...
I need some help with translating the following CouchDB views from javascript to erlang. I need them in erlang, because in javascript the view uses all of the available stack memory and crashes couchjs (see this bugreport https://issues.apache.org/ji...
I'm trying to save a Backbone model in couchdb so I've overridden the save method with a ajax requet to couchdb:    $.ajax({     type: 'PUT',     url: 'http://127.0.0.1:5984/movies/' + this.get('id'),     contentType:...
I'm trying to understand CouchDB and couchapp, and as I'm going through I'm seeing a dearth of the use of 'this' in any given context.  I understand that show objects get the document and the request, and are allowed to operate on...
I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'...
Just looking for info on what strategies people use for this?  In the examples I see it is really easy to make a remote database connection that I will call get() on.   var remoteDb = new PouchDB('https://myhost.com/db'); var data = remoteDb....
Iam new to couchdb.I want to know whether wild card search is possible in couchdb or not.if it is possible give me sample example for that....
I really like the format of the _ids generated by mongodb. Mostly because I can pull data like the date out of them client side. I'm planning to use another database but still want that type of _id for my document. How can I create these ids with...
I have a page which store data in CouchDB. The page accesses the database directly via javascript, so not much of the logic is hidden from the browser. When creating a new document there is some logic which extracts elements of the data into separate...
I have some data stored in CouchDb of the form key-value. Basically it a tuple with a value and salt. I have created a view that return these tuples and calculate the sha1() of the value + salt on the client side using javascript. Is it possible to s...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.