(doc_class)
return [row['id'] for row in doc_class.get_db().view(
        'all_docs/by_doc_type',
        startkey=[doc_type],
        endkey=[doc_type, {}],
        include_docs=False,
        reduce=False,
    )]
Useful for migrations, but has the potential to be very large
Useful for migrations, but has the potential to be very large
Useful for migrations but has the potential to be very large
def get_doc_ids_by_class(doc_class):
    """Useful for migrations, but has the potential to be very large"""
    doc_type = doc_class.__name__
    return [row['id'] for row in doc_class.get_db().view(
        'all_docs/by_doc_type',
        startkey=[doc_type],
        endkey=[doc_type, {}],
        include_docs=False,
        reduce=False,
    )]
def get_doc_ids_by_class ( doc_class ) : doc_type = doc_class . __name__ return [ row [ 'id' ] for row in doc_class . get_db ( ) . view ( 'all_docs/by_doc_type' , startkey = [ doc_type ] , endkey = [ doc_type , { } ] , include_docs = False , reduce = False , ) ]