More changes to promise chain testing
This commit is contained in:
parent
6ea91cd1c9
commit
43546d93fe
@ -5,12 +5,14 @@ var connection_pool = mysql.createPool({
|
||||
host: "10.26.48.207",
|
||||
user: mysql_username,
|
||||
password: mysql_password,
|
||||
database: db_name,
|
||||
database: 'breadbot_test',
|
||||
connectionLimit: 10
|
||||
}).promise()
|
||||
|
||||
await connection_pool.query("SELECT * FROM servers").then(([rows, fields]) => {
|
||||
connection_pool.query("SELECT * FROM servers").then(([rows, fields]) => {
|
||||
console.log(rows)
|
||||
connection_pool.query("SELECT * FROM channels").then(([rows, fields]) => {
|
||||
console.log(rows)
|
||||
return "SOME TEXT"
|
||||
})
|
||||
}).then(console.log)
|
Loading…
Reference in New Issue
Block a user