Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript mysql query

const db = require('../services/db');

async function getMultiple(){
  const data = await db.query('SELECT id, quote, author FROM quote');
  const meta = {page: 1};

  return {
    data,
    meta
  }
}

module.exports = {
  getMultiple
}
Source by geshan.com.np #
 
PREVIOUS NEXT
Tagged: #javascript #mysql #query
ADD COMMENT
Topic
Name
6+2 =