doix-db 1.0.62 → 1.0.63
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.
- package/lib/DbCall.js +1 -14
- package/lib/DbClient.js +19 -0
- package/package.json +1 -1
package/lib/DbCall.js
CHANGED
|
@@ -108,20 +108,7 @@ class DbCall extends EventEmitter {
|
|
|
108
108
|
|
|
109
109
|
get [Tracker.LOGGING_EVENTS] () {
|
|
110
110
|
|
|
111
|
-
return
|
|
112
|
-
|
|
113
|
-
start: {
|
|
114
|
-
level: 'info',
|
|
115
|
-
message: function () {return this.sql},
|
|
116
|
-
details: {},
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
finish: {
|
|
120
|
-
level: 'info',
|
|
121
|
-
elapsed: true,
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
}
|
|
111
|
+
return this.db.getCallLoggingEvents ()
|
|
125
112
|
|
|
126
113
|
}
|
|
127
114
|
|
package/lib/DbClient.js
CHANGED
|
@@ -51,6 +51,25 @@ class DbClient extends EventEmitter {
|
|
|
51
51
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
getCallLoggingEvents () {
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
start: {
|
|
59
|
+
level: 'info',
|
|
60
|
+
message: function () {return this.sql},
|
|
61
|
+
details: {},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
finish: {
|
|
65
|
+
level: 'info',
|
|
66
|
+
elapsed: true,
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
|
|
54
73
|
async createTempTable (table, options) {
|
|
55
74
|
|
|
56
75
|
if (typeof table === 'string') table = this.model.find (table)
|