Git Product home page Git Product logo

couchdb4j's People

Contributors

i386 avatar mbreese avatar tobrien avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

couchdb4j's Issues

adhoc views not using proper request syntax

adhoc() in Database, is sending an request to _temp_view as:

{"map":function(doc){ emit(null, doc); }}

It should be sending:

{"map":"function(doc){ emit(null, doc); }"}

Figure out how to get this JSON library to surround the function with quotes.

Figure out an intelligent way to handle update failures in a bulk update

Right now, we just assume that the entire bulkupdate worked. If an individual document did not update, there is no way to hold this information and commnuicate it in the API. Find a way to handle the case where a few updates worked but some failed. Figure out a way to get this info back to the caller

Fix Document getRevisions for 0.9 Compatibility

The current way that the code is trying to get a list of revisions seems incompatible with CouchDB 0.9. Take a look at this:
/**
* A list of the revision numbers that this document has. If this hasn't been
* populated with a "full=true" query, then the database will be re-queried
* @return
*/
public String[] getRevisions() throws IOException {
String[] revs = null;
if (!object.has("_revs")) {
populateRevisions();
}
//System.out.println(object);
JSONArray ar = object.getJSONArray("_revs");
if (ar!=null) {
revs = new String[ar.size()];
for (int i=0 ; i< ar.size(); i++) {
revs[i]=ar.getString(i);
}
}
return revs;
}

And Fix it for 0.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.