def get_tree_size(cur):
    sql = """
      SELECT
        COUNT(*)
      FROM
        nodes;
    """
    cur.execute(sql)
    result = cur.fetchone()
    return result['count']
Append a line to the history buffer, as if it was the last line typed.
dataset/ETHPy150Open conceptsandtraining/libtree/libtree/core/query.py/get_tree_size--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/rlmain.py/Readline.add_history