SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const connection = require('../config/database.js')
  2.  
  3. module.exports.getAll = () => {
  4.     return connection.query('SELECT * FROM users;', (error, results, fields) => {
  5.         if (error) throw error
  6.             return results
  7.     })
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top