Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const pool = mysql.createPool({
- connectionLimit : 10,
- host: cfg.db.host,
- user: cfg.db.user,
- password: cfg.db.password,
- database: cfg.db.database,
- charset: 'CP1251',
- timezone: 'Europe/Moscow'
- });
- var funcs = {
- init: function () {
- pool.query("SELECT * FROM `table`", function (error, results, fields) {
- if (error) throw error;
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement