masterrecord 1.0.5 → 1.0.6

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/mySQLEngine.js CHANGED
@@ -141,10 +141,6 @@ class MySQLEngine {
141
141
 
142
142
  if (queryString.query) {
143
143
  const params = query.parameters ? query.parameters.getParams() : [];
144
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
145
- console.debug("[SQL]", queryString.query);
146
- console.debug("[Params]", params);
147
- }
148
144
  const result = await this._runWithParams(queryString.query, params);
149
145
  return result[0] || null;
150
146
  }
@@ -177,10 +173,6 @@ class MySQLEngine {
177
173
 
178
174
  if (sql) {
179
175
  const params = query.parameters ? query.parameters.getParams() : [];
180
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
181
- console.debug("[SQL]", sql);
182
- console.debug("[Params]", params);
183
- }
184
176
  const result = await this._runWithParams(sql, params);
185
177
  return result[0] || null;
186
178
  }
@@ -219,10 +211,6 @@ class MySQLEngine {
219
211
 
220
212
  if (queryString.query) {
221
213
  const params = query.parameters ? query.parameters.getParams() : [];
222
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
223
- console.debug("[SQL]", queryString.query);
224
- console.debug("[Params]", params);
225
- }
226
214
  const result = await this._runWithParams(queryString.query, params);
227
215
  return result || [];
228
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "masterrecord",
3
- "version": "1.0.005",
3
+ "version": "1.0.006",
4
4
  "description": "An Object-relational mapping for the Master framework. Master Record connects classes to relational database tables to establish a database with almost zero-configuration ",
5
5
  "type": "module",
6
6
  "main": "./MasterRecord.js",
package/postgresEngine.js CHANGED
@@ -170,10 +170,6 @@ class postgresEngine {
170
170
  }
171
171
 
172
172
  if (queryString.query) {
173
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
174
- console.debug("[SQL]", queryString.query);
175
- console.debug("[Params]", queryString.params || []);
176
- }
177
173
  const result = await this._runWithParams(queryString.query, queryString.params || []);
178
174
  return result.rows[0] || null;
179
175
  }
@@ -207,10 +203,6 @@ class postgresEngine {
207
203
  }
208
204
 
209
205
  if (queryString.query) {
210
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
211
- console.debug("[SQL]", queryString.query);
212
- console.debug("[Params]", queryString.params);
213
- }
214
206
  const result = await this._runWithParams(queryString.query, queryString.params);
215
207
  return result.rows[0] || null;
216
208
  }
@@ -234,10 +226,6 @@ class postgresEngine {
234
226
  }
235
227
 
236
228
  if (selectQuery.query) {
237
- if (process.env.LOG_SQL === 'true' || process.env.NODE_ENV !== 'production') {
238
- console.debug("[SQL]", selectQuery.query);
239
- console.debug("[Params]", selectQuery.params || []);
240
- }
241
229
  const result = await this._runWithParams(selectQuery.query, selectQuery.params || []);
242
230
  return result.rows || [];
243
231
  }