@reachu/database 1.0.96 → 1.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,8 +16,9 @@ const getCurrentDate = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
16
16
|
const queryRunner = connection.createQueryRunner();
|
|
17
17
|
try {
|
|
18
18
|
yield queryRunner.connect();
|
|
19
|
-
const result = yield queryRunner.query('SELECT NOW()');
|
|
20
|
-
|
|
19
|
+
const result = yield queryRunner.query('SELECT NOW() as date');
|
|
20
|
+
console.log(`getCurrentDate result: ${JSON.stringify(result)}`);
|
|
21
|
+
const currentDate = result[0].date;
|
|
21
22
|
console.log(`getCurrentDate: ${currentDate}`);
|
|
22
23
|
}
|
|
23
24
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/querys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwC;AAExC,MAAM,cAAc,GAAG,GAAS,EAAE;IAChC,MAAM,UAAU,GAAG,uBAAa,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;IACnD,IAAI;QACF,MAAM,WAAW,CAAC,OAAO,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/querys/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwC;AAExC,MAAM,cAAc,GAAG,GAAS,EAAE;IAChC,MAAM,UAAU,GAAG,uBAAa,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;IACnD,IAAI;QACF,MAAM,WAAW,CAAC,OAAO,EAAE,CAAC;QAC5B,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,0BAA0B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAChE,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,mBAAmB,WAAW,EAAE,CAAC,CAAC;KAC/C;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;KAChD;YAAS;QACR,MAAM,WAAW,CAAC,OAAO,EAAE,CAAC;KAC7B;AACH,CAAC,CAAA,CAAC;AAEO,wCAAc"}
|
|
@@ -2987,7 +2987,7 @@
|
|
|
2987
2987
|
"affectsGlobalScope": false
|
|
2988
2988
|
},
|
|
2989
2989
|
"../src/helpers/querys/index.ts": {
|
|
2990
|
-
"version": "
|
|
2990
|
+
"version": "ab2befcd1372f06609cfda17b110c31f1b76cd9092033ba59b7bd33bcb6fe90b",
|
|
2991
2991
|
"signature": "eb80b6c7eae67e57701b07fcd4afe0de1d9ba7098ff3b7ab70828646e76fbad2",
|
|
2992
2992
|
"affectsGlobalScope": false
|
|
2993
2993
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.97",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.97",
|
|
25
|
+
"@reachu/utils": "1.0.97",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -5,8 +5,9 @@ const getCurrentDate = async () => {
|
|
|
5
5
|
const queryRunner = connection.createQueryRunner();
|
|
6
6
|
try {
|
|
7
7
|
await queryRunner.connect();
|
|
8
|
-
const result = await queryRunner.query('SELECT NOW()');
|
|
9
|
-
|
|
8
|
+
const result = await queryRunner.query('SELECT NOW() as date');
|
|
9
|
+
console.log(`getCurrentDate result: ${JSON.stringify(result)}`);
|
|
10
|
+
const currentDate = result[0].date;
|
|
10
11
|
console.log(`getCurrentDate: ${currentDate}`);
|
|
11
12
|
} catch (error) {
|
|
12
13
|
console.error('getCurrentDate: Error:', error);
|