src/cypher/run.py
def interpret_stats(results):
    """Generates the string to be shown as updates after the execution of a
    Cypher query

    :param results: ``ResultSet`` with the raw results of the execution of
                    the Cypher query
    """
    stats = results.stats
    contains_updates = stats.pop("contains_updates", False) if stats else False
    if not contains_updates:
        result = '{} rows affected.'.format(len(results))
    else:
        result = ''
        for stat, value in stats.items():
            if value:
                result = "{}\n{} {}.".format(result, value,
                                             stat.replace("_", " "))
    return result.strip()
def interpret_stats(results):
    stats = results.stats
    contains_updates = stats.pop("contains_updates", False) if stats else False
    if not contains_updates:
        result = '{} rows affected.'.format(len(results))
    else:
        result = ''
        for stat, value in stats.items():
            if value:
                result = "{}\n{} {}.".format(result, value,
                                             stat.replace("_", " "))
    return result.strip()
def interpret_stats ( results ) : stats = results . stats contains_updates = stats . pop ( "contains_updates" , False ) if stats else False if not contains_updates : result = '{} rows affected.' . format ( len ( results ) ) else : result = '' for stat , value in stats . items ( ) : if value : result = "{}\n{} {}." . format ( result , value , stat . replace ( "_" , " " ) ) return result . strip ( )
Generates the string to be shown as updates after the execution of a
    Cypher query

    :param results: ``ResultSet`` with the raw results of the execution of
                    the Cypher query
Generates the string to be shown as updates after the execution of a Cypher query