You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
311 B

const dbRegistos = _db.query(`
SELECT nome, c_r_m
FROM medico
`);
const lista = _val.list();
for (const dbRegisto of dbRegistos) {
lista.add(
_val.map()
.set("nome", dbRegisto.getString("nome"))
.set("CRM", dbRegisto.getString("c_r_m"))
);
}
_out.json(lista);