Skip to content

Instantly share code, notes, and snippets.

View P4R0D-Y's full-sized avatar
🎯
Focusing

Eduard Armstrong P4R0D-Y

🎯
Focusing
View GitHub Profile
@Anshul0305
Anshul0305 / dialogflow-mysql.js
Last active April 2, 2023 23:42
Connect Dialogflow with MySQL Database
const mysql = require('mysql');
function connectToDatabase(){
const connection = mysql.createConnection({
host : 'HOST',
user : 'USER',
password : 'PASSWORD',
database : 'DATABASE'
});
return new Promise((resolve,reject) => {