Archived
1
0

New SQL def & added code example to read from SQL

This commit is contained in:
2022-12-30 12:25:46 -06:00
parent e639989424
commit 89a64a8fef
2 changed files with 20 additions and 3 deletions

View File

@@ -33,6 +33,16 @@ try {
var links = require('../src/links.json');
}
// WIP learning to read from DB
con.connect(function(err) {
if (err) throw err;
console.log("Connected!");
con.query(sql, function (err, result) {
if (err) throw err;
console.log("Result: " + result);
});
});
//Read personal data
try {
var personaldata = require('../src/personaldata.json');