I have the following code I am using with a SQLite3 npm module.
db.all("SELECT * FROM posts WHERE id = '3', function(err, rows) {
return rows
})
I would like to access the data from rows
outside of this code, for example...
db.all("SELECT * FROM posts WHERE id = '3', function(err, rows) {
return rows
})
// >>> *** I want to call the results for rows here ***
Could someone explain with a quick example how this is done?