(db, doc_types)
doc_types must be a sequence of doc_types

    returns doc JSON (not wrapped)
doc_types must be a sequence of doc_types
doc_types must be a sequence of doc_types
def get_all_docs_with_doc_types(db, doc_types):
    """
    doc_types must be a sequence of doc_types

    returns doc JSON (not wrapped)
    """
    if isinstance(doc_types, str):
        raise TypeError('get_all_docs_with_doc_types requires doc_types '
                        'to be a sequence of strings, not {!r}'.format(doc_types))
    for doc_type in doc_types:
        results = paginate_view(
            db, 'all_docs/by_doc_type',
            chunk_size=100, startkey=[doc_type], endkey=[doc_type, {}],
            include_docs=True, reduce=False)
        for result in results:
            yield result['doc']
def get_all_docs_with_doc_types ( db , doc_types ) : if isinstance ( doc_types , str ) : raise TypeError ( 'get_all_docs_with_doc_types requires doc_types ' 'to be a sequence of strings, not {!r}' . format ( doc_types ) ) for doc_type in doc_types : results = paginate_view ( db , 'all_docs/by_doc_type' , chunk_size = 100 , startkey = [ doc_type ] , endkey = [ doc_type , { } ] , include_docs = True , reduce = False ) for result in results : yield result [ 'doc' ]