(cur, sql, params = None, **kwargs)
return rows[0]
Helper function if everything you need is just paramertisized execute to
        fetch one row only. If not found none is returned
Helper function if everything you need is just paramertisized execute to
        fetch one row only. If not found none is returned
Helper function if everything you need is just paramertisized execute to fetch one row only . If not found none is returned
def run_query_row(cur, sql, params = None, **kwargs):
    """ Helper function if everything you need is just paramertisized execute to
        fetch one row only. If not found none is returned
    """
    params = params or kwargs
    rows = run_query(cur, sql, params)
    if len(rows) == 0:
        return None
    return rows[0]
def run_query_row ( cur , sql , params = None , * * kwargs ) : params = params or kwargs rows = run_query ( cur , sql , params ) if len ( rows ) == 0 : return None return rows [ 0 ]