• Alfredo Di Napoli's avatar
    Add insertDoc, refactor insertDocs · 0c2fb6fb
    Alfredo Di Napoli authored
    For some strange reason `insertDocs` was implemented with a contrived
    mechanism to insert data, build a map with some hashes and retrieve the
    information later. This refactoring should technically achieve the same
    but without the complication.
    
    We now have an `insertDoc` function that can be used to insert single
    documents, so that we can catch exceptions coming from the database
    and act accordingly.
    0c2fb6fb