Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jelani Thompson
    @JelaniThompson
    Hey there! I'm making a database with nano currently
    The current approach I'm taking with making user accounts is to create a new document in the users database
    I have two special fields called "username" and "password"
    How can I make it so that the password isn't stored as plain text?
    Don't think it's safe that admins can view passwords right out in the open there lol
    KSV
    @vicmania2007
    is there a way to find and modify a document? Like this mongo equivalent http://stackoverflow.com/questions/6997835/how-does-mongodb-deal-with-concurent-updates ???
    Dominique Sandoz
    @streunerlein
    @vicmania2007 I do not quite understand your question - "find" works by Views, "modify" by regular HTTP request. "Concurrency" has been built into CouchDB 2.0 when used in a clustered environment.
    (ok, last sentence is confusing: "Concurrency" is generally solved by CouchDBs Conflict Management, there is no locking, but there is a "relaxed" handling of conflicts)
    @JelaniThompson CouchDB salts and hashes user passwords, so you enter them in plaintext but they will not get stored in plaintext (but hashed).
    KSV
    @vicmania2007
    @streunerlein my question was how you will find a document and update it. looks like we have to use find method to find the document and update it using db
    Db.insert
    Nevermind I got the solution.
    Thanks @streunerlein
    Dominique Sandoz
    @streunerlein
    @vicmania2007 Yeah, because of CouchDBs architecture, you cannot really "find" documents like you would in other DBs. You find it by filtering a View that contains the document.
    Alright, good luck
    Joe
    @foxjazz
    triing to test couchdb with postman
    curl works, but not sure why this doesn't
    Jean-Marcel Belmont
    @jbelmont
    hello all
    I have a question about using docker with nano library
    const nano = require('nano')('http://db:5984/');
    I am curious about the right way to invoke nano with docker
    I had this before const nano = require('nano')('http://127.0.0.1:5984/');
    I have a Dockerfile and docker-compose.yml
    tanujkhurana
    @tanujkhurana
    Hi, i want to document from couchdb and document have attachment. i want to get the document with attachment. i am not be able to get attachment.
    Basheer A Radman
    @ba2015sheer_twitter
    OK
    Kevin Bai
    @KevinBaiSg
    Hi, I want to create a database user nano.db.create, but it return a error 500