(cur, sql, params = None, **kwargs)
return rows
Helper function if everything you need is just paramertisized execute
        Sets rows_found that is coneninet to use when you don't need result just
        want to know how many rows were affected
Helper function if everything you need is just paramertisized execute
        Sets rows_found that is coneninet to use when you don't need result just
        want to know how many rows were affected
Helper function if everything you need is just paramertisized execute Sets rows_found that is coneninet to use when you don t need result just want to know how many rows were affected
def run_query(cur, sql, params = None, **kwargs):
    """ Helper function if everything you need is just paramertisized execute
        Sets rows_found that is coneninet to use when you don't need result just
        want to know how many rows were affected
    """
    params = params or kwargs
    sql = QueryBuilder(sql, params).get_sql(0)
    cur.execute(sql)
    rows = cur.fetchall()
    # convert result rows to dbdict
    if rows:
        rows = [skytools.dbdict(r) for r in rows]
    return rows
def run_query ( cur , sql , params = None , * * kwargs ) : params = params or kwargs sql = QueryBuilder ( sql , params ) . get_sql ( 0 ) cur . execute ( sql ) rows = cur . fetchall ( ) # convert result rows to dbdict if rows : rows = [ skytools . dbdict ( r ) for r in rows ] return rows