regolith/commands.py
def add_cmd(rc):
    """Adds documents to a collection in a database."""
    db = rc.client[rc.db]
    coll = db[rc.coll]
    docs = [json.loads(doc) if isinstance(doc, string_types) else doc
            for doc in rc.documents]
    rc.client.insert_many(rc.db, rc.coll, docs)
Adds documents to a collection in a database.
Adds documents to a collection in a database.
Adds documents to a collection in a database .
def add_cmd(rc):
    db = rc.client[rc.db]
    coll = db[rc.coll]
    docs = [json.loads(doc) if isinstance(doc, string_types) else doc
            for doc in rc.documents]
    rc.client.insert_many(rc.db, rc.coll, docs)
def add_cmd ( rc ) : db = rc . client [ rc . db ] coll = db [ rc . coll ] docs = [ json . loads ( doc ) if isinstance ( doc , string_types ) else doc for doc in rc . documents ] rc . client . insert_many ( rc . db , rc . coll , docs )
Adds documents to a collection in a database.
Adds documents to a collection in a database .
"""Adds documents to a collection in a database."""
rc