Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const { SQL } = require('liqd-framework');
- const DB = new SQL(
- {
- mysql:
- {
- socketPath : '/var/run/mysqld/mysqld.sock',
- user : 'root',
- password : '',
- database : 'devel_eshops'
- }
- });
- async funtion test()
- {
- return await DB.query('products').select();
- }
- console.log( test() )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement