def stream_collection(collection_name):
    """Streams the contents of the collection to stdout.

    Args:
        collection_name: the name of the collection
    """
    conn = get_db_conn()
    coll = conn[collection_name]
    objects = map(fou.pformat, coll.find({}))
    fou.stream_objects(objects)
Streams the contents of the collection to stdout.

    Args:
        collection_name: the name of the collection
    
fiftyone/core/odm/database.py