-
-
Save parzibyte/8545661492cb72c9f0d6481ecb338696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obtener() { | |
return new Promise((resolve, reject) => { | |
conexion.query(`select id, nombre, precio from productos`, | |
(err, resultados) => { | |
if (err) reject(err); | |
else resolve(resultados); | |
}); | |
}); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment