function resumeID() {
let searchSQL = `SELECT * FROM students ORDER BY id DESC`;
db.get(searchSQL, (err, row) => row);
}
I am a newbie in javascript and I use sqlite3 in nodejs. I want to use the variable "row"(as shown in the code) as the return value of the function "resumeID". Is there any way to do that?
Note: the db variable is an database object created with new sqlite3.Database()