def SeleccionarDuenosPorID(id): select_cursor = DB().run("Select * from Duenos where id_dueno = " + str(id) + ";") d = select_cursor.fetchall() unDueno = Dueno() unDueno.DeserializarDueno(d[0]) return unDueno
def SelectConsultasPorID(idd): cursorxd = DB().run("select * from Consulta where id_consulta =" + str(idd) + ";") d = cursorxd.fetchall() consulta = Consulta() consulta.DeserializarConsultas(d[0]) return consulta
def SeleccionarVeterinariosPorID(id): select_cursor = DB().run( "Select * from Veterinarios where id_veterinario = " + str(id) + ";") d = select_cursor.fetchall() veterinario = Veterinario() veterinario.DeserializarVeterinario(d[0]) return veterinario
def SelectMascotaporID(idd): select_cursor = DB().run("Select * from Mascotas where id_mascota = " + str(idd) + ";") d = select_cursor.fetchall() unamascota = Mascota() unamascota.DeserializarMascota(d[0]) return unamascota