debug(f'{params_kw=}')
ns = params_kw.copy()
db = DBPools()
sql = f"""select {params_kw.tblvalue} as {params_kw.valueField},
                {params_kw.tbltext} as {params_kw.textField}
from {params_kw.table} where 1=1 """
if params_kw.cond:
    sql += f"and {params_kw.cond}"
print('sql=', sql)
dbname = await rfexe('get_module_dbname', 'msp')
async with db.sqlorContext(dbname) as sor:
    rs = await sor.sqlExe(sql, ns)
    return rs
return []

