Questions tagged [cradle]

A high-level, caching, CouchDB client for Node.js

71 questions
22
votes
3 answers

No cradle found for filename.hs. Proceeding with implicit cradle

I am using haskell at VSCode. And i use stack's ghc. (i wrote export PATH=$PATH:/home/username/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.3/bin at ~/.bashrc) I don't have any problem at this, but nowadays, i can get the message at the VSCcode like…
kn05
  • 327
  • 2
  • 7
14
votes
1 answer

switching to gradle from maven to manage a osgi big project (>200 bundles)

We have a big (~215 bundles and counting) osgi (felix+springdm) project, build with maven and maven-osgi plugin. We've several problems with maven way: 1. submodules pom have to inherit from parent pom to take advantage of common variables and…
Uberto
  • 2,712
  • 3
  • 25
  • 27
11
votes
1 answer

Android Studio 1.1.0 Gradle project sync failed Error importing a Gradle project on a OSX

I just installed gradle in this folder: /Users/joanet/Development/gradle-2.3 edit the file launchd.conf sudo vim /etc/launchd.conf to set the variable GRAILS_HOME setenv GRAILS_HOME /Users/joanet/Development/gradle-2.3 then I've imported the…
10
votes
3 answers

What's a recommended way to put CouchDB views under source control?

I'm writing a node CRUD app that requires a few CouchDB views (I'm using express and cradle). I've got the node app itself controlled with git, but my DB views are currently uncontrolled. What's the recommended way to put these under source control?…
MikeRand
  • 4,788
  • 9
  • 41
  • 70
5
votes
2 answers

Retrieving all Documents from couchdb using Node.js

I am writing a simple test app to experiment with the functionality of node.js and couchdb, so far i am loving it, but i ran in a snag. i have looked for and wide but can't seem to find an answer. My test server(a simple address book) does 2…
Dewseph
  • 155
  • 1
  • 1
  • 10
5
votes
1 answer

Get all recently changed documents in a CouchDB database

Using following code: db.changes({'include_docs':true}).on('response', function (res) { res.on('data', function (change) { console.log(change); }); }); I am able to get all (old & new) documents that are changed in the database but…
Abhishek
  • 1,999
  • 5
  • 26
  • 52
3
votes
2 answers

How can I call functions on documents retrieved from CouchDB?

I am using Cradle to store objects in CouchDB from my Node.js server. The objects contain functions.... function AnObject(a, b){ this.a = a; this.b = b; this.addparts = function(){return this.a + this.b;};} var cradle = require('cradle'); var db =…
Michael Dausmann
  • 4,202
  • 3
  • 35
  • 48
3
votes
1 answer

Getting binary files with cradles getAttachment from a CouchDB?

I uploaded a png as attachment to a CouchDb database. When I have look at it via Futon it is fine, if I try to get it back via cradle it is corrupted. I used a snipptlet from the crade-test.js shipped with crade and modified it a bit: var…
Nico
  • 31
  • 2
3
votes
1 answer

NodeJS and Cradle Not Connecting

Using Cradle 5.5 and NodeJS 0.4.8, I can't seem to get a connection to work. I've successfully used RESTLER, but I can't seem to configure cradle. I'd like to take advantage of the caching aspects of Cradle. I've tried both my Cloudant Account and…
Scott Feinberg
  • 574
  • 4
  • 20
3
votes
2 answers

How can I pass parameters to a view using cradle (CouchDB)

Using cradle, how am I able to pass parameters to a view in CouchDB? Update Say I want to return documents which match other properties than _key (the default)... // document format { _key, postHeading, postBody, postDate } What if…
cllpse
  • 21,396
  • 37
  • 131
  • 170
3
votes
0 answers

Gradle task to run acceptance tests with custom runner

In my project, I have acceptance tests that need a custom instrumentation test runner other than AndroidJUnitRunner and Espresso tests which only run with the AndroidJUnitRunner. I solved this problem by dynamically setting the correct…
root
  • 81
  • 6
3
votes
2 answers

How to handle Document update conflict when using CouchDB client cradle for Node.js?

1000000 clients try to update a couchdb document using flatiron/cradle at the same time. How to handle all update conflicts?
Andromeda
  • 111
  • 1
  • 11
3
votes
1 answer

Getting all documents of a database in CouchDB

The get() method of the Cradle library requires me to provide an _id. CouchDB provides an _all_docs view, but there's nothing in the Cradle documentation about this. How can I get all documents from a single CouchDB database with Cradle?
user1684434
  • 49
  • 1
  • 2
2
votes
1 answer

Pass array in querystring in Node.js

I'm using Node.js with Cradle to call a CouchDB update handler. I need to pass an array in the querystring, but when I read the req.query object in CouchDB, only the first array value is available. So, for example using Cradle .update…
Carol Skelly
  • 351,302
  • 90
  • 710
  • 624
2
votes
1 answer

Is it possible to make cradle calls synchronously?

I'm using Express for a project, and I've been trying out the CouchDB database using Cradle. While the idea of asynchronous execution is cool for performance reasons, it's making my code really a mess for routines where I need to make several…
Blank
  • 7,088
  • 12
  • 49
  • 69
1
2 3 4 5