connection.connect()
console.log(login ${login})
let result = await connection.query({
sql: 'SELECT * FROM mydb.users WHERE login=?',
timeout: 40000,
values: [login]
}, await function (error, results, fields) {
console.log(results)
return results
}
);
console.log(result.sql)
await connection.end()
console.log(result)
}
http://learn.javascript.ru
Обсуждают сегодня