This commit is contained in:
Benjamin Toby
2025-07-06 17:00:35 +01:00
parent b38ddc9f21
commit 6acf0f2cd6
48 changed files with 353 additions and 622 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ const grab_dsql_connection_1 = __importDefault(require("../utils/grab-dsql-conne
*/
(() => __awaiter(void 0, void 0, void 0, function* () {
var _a;
const CONNECTION = (0, grab_dsql_connection_1.default)();
const CONNECTION = yield (0, grab_dsql_connection_1.default)();
try {
const result = yield CONNECTION.query("SELECT id,first_name,last_name FROM users LIMIT 3");
console.log("Connection Query Success =>", result);
@@ -37,7 +37,7 @@ const grab_dsql_connection_1 = __importDefault(require("../utils/grab-dsql-conne
(_a = global.ERROR_CALLBACK) === null || _a === void 0 ? void 0 : _a.call(global, `Error Checking DB`, error);
}
finally {
CONNECTION === null || CONNECTION === void 0 ? void 0 : CONNECTION.end();
yield (CONNECTION === null || CONNECTION === void 0 ? void 0 : CONNECTION.end());
process.exit();
}
}))();
+2 -2
View File
@@ -27,7 +27,7 @@ const grab_dsql_connection_1 = __importDefault(require("../utils/grab-dsql-conne
*/
(() => __awaiter(void 0, void 0, void 0, function* () {
var _a;
const CONNECTION = (0, grab_dsql_connection_1.default)({ noDb: true });
const CONNECTION = yield (0, grab_dsql_connection_1.default)({ noDb: true });
/**
* Switch Database
*
@@ -42,7 +42,7 @@ const grab_dsql_connection_1 = __importDefault(require("../utils/grab-dsql-conne
(_a = global.ERROR_CALLBACK) === null || _a === void 0 ? void 0 : _a.call(global, `Error Testing External Server`, error);
}
finally {
CONNECTION === null || CONNECTION === void 0 ? void 0 : CONNECTION.end();
yield (CONNECTION === null || CONNECTION === void 0 ? void 0 : CONNECTION.end());
process.exit();
}
}))();
+2 -2
View File
@@ -28,7 +28,7 @@ const grab_sql_key_name_1 = __importDefault(require("../utils/grab-sql-key-name"
*/
(() => __awaiter(void 0, void 0, void 0, function* () {
var _a, _b;
const CONNECTION = (0, grab_dsql_connection_1.default)();
const CONNECTION = yield (0, grab_dsql_connection_1.default)();
try {
const result = yield CONNECTION.query("SELECT user,host,ssl_type FROM mysql.user");
const parsedResults = JSON.parse(JSON.stringify(result));
@@ -51,7 +51,7 @@ const grab_sql_key_name_1 = __importDefault(require("../utils/grab-sql-key-name"
(_b = global.ERROR_CALLBACK) === null || _b === void 0 ? void 0 : _b.call(global, `Error Updating SSL Users`, error);
}
finally {
CONNECTION.end();
yield (CONNECTION === null || CONNECTION === void 0 ? void 0 : CONNECTION.end());
process.exit();
}
}))();