Merge branch 'master' into skysql_field

# Conflicts:
#	bookings/src/db.js
#	flights/src/db.js
#	orders/src/db.js
#	places/src/db.js
skysql_field
Rob Hedgpeth 2020-03-31 10:05:43 -05:00
commit d296119d31
4 zmienionych plików z 23 dodań i 8 usunięć

Wyświetl plik

@ -1,8 +1,12 @@
const fs = require("fs");
var mariadb = require('mariadb'); var mariadb = require('mariadb');
require('dotenv').config(); require('dotenv').config();
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")] // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it!
// * To use just uncomment the two lines below and the 'ssl' property (and value)
const fs = require("fs");
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
const pool = mariadb.createPool({ const pool = mariadb.createPool({
host: process.env.DB_HOST, host: process.env.DB_HOST,

Wyświetl plik

@ -1,7 +1,11 @@
const fs = require("fs");
var mariadb = require('mariadb'); var mariadb = require('mariadb');
require('dotenv').config(); require('dotenv').config();
// SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it!
// * To use just uncomment the two lines below and the 'ssl' property (and value)
const fs = require("fs");
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
const pool = mariadb.createPool({ const pool = mariadb.createPool({

Wyświetl plik

@ -1,9 +1,12 @@
const fs = require("fs");
var mariadb = require('mariadb'); var mariadb = require('mariadb');
require('dotenv').config(); require('dotenv').config();
// For SSL connections // SSL (e.g. SkySQL) connections
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")]; // * Remember to change the location of "skysql_chain.pem" to wherever you placed it!
// * To use just uncomment the two lines below and the 'ssl' property (and value)
const fs = require("fs");
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];r
var pools = [ var pools = [
mariadb.createPool({ mariadb.createPool({

Wyświetl plik

@ -1,8 +1,12 @@
const fs = require("fs");
var mariadb = require('mariadb'); var mariadb = require('mariadb');
require('dotenv').config(); require('dotenv').config();
const serverCert = [fs.readFileSync("skysql_chain_t.pem", "utf8")]; // SSL (e.g. SkySQL) connections
// * Remember to change the location of "skysql_chain.pem" to wherever you placed it!
// * To use just uncomment the two lines below and the 'ssl' property (and value)
const fs = require("fs");
const serverCert = [fs.readFileSync("skysql_chain.pem", "utf8")];
const pool = mariadb.createPool({ const pool = mariadb.createPool({
host: process.env.DB_HOST, host: process.env.DB_HOST,