def fetch(db=None, sql=None):
    cur = _connect(db)

    if not cur:
        return False

    cur.execute(sql)
    rows = cur.fetchall()
    return rows
wrap a function to register it's return value as a bean
dataset/ETHPy150Open saltstack/salt/salt/modules/sqlite3.py/fetch--crossover with--dataset/ETHPy150Open yegong/stock/utils/injection.py/value_factory