SHARE
TWEET

Untitled

a guest Jul 16th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'use strict';
  2.  
  3. const { SQL } = require('liqd-framework');
  4.  
  5. const DB = new SQL(
  6. {
  7.     mysql:
  8.     {
  9.         socketPath  : '/var/run/mysqld/mysqld.sock',
  10.         user        : 'root',
  11.         password    : '',
  12.         database    : 'devel_eshops'
  13.     }
  14. });
  15.  
  16. async funtion test()
  17. {
  18.     return await DB.query('products').select();
  19. }
  20.  
  21. console.log( test() )
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top