@zintrust/db-mysql 1.8.9 → 1.9.0
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/dist/index.js +0 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158,7 +158,6 @@ async function connect(state, config) {
|
|
|
158
158
|
const isWorkersRuntime = Cloudflare.getWorkersEnv() !== null;
|
|
159
159
|
const tlsEnabled = Boolean(config.ssl);
|
|
160
160
|
const nodeMysqlSslConfig = getNodeMysqlSslConfig(tlsEnabled);
|
|
161
|
-
Logger.info(`[db-mysql] Effective connection params: host=${host}, port=${port}, database=${database}, user=${user}, password_len=${password.length}, ssl=${tlsEnabled}`);
|
|
162
161
|
const timeoutMs = getSocketTimeoutMs(config);
|
|
163
162
|
if (isWorkersRuntime) {
|
|
164
163
|
state.pool = await createWorkersPool({
|
|
@@ -214,7 +213,6 @@ async function rawQuery(state, sql, parameters) {
|
|
|
214
213
|
}
|
|
215
214
|
const pool = ensurePool(state);
|
|
216
215
|
try {
|
|
217
|
-
Logger.warn(`Raw SQL Query executed: ${sql}`, Logger.withTraceSkipContext({ sql, parameters }));
|
|
218
216
|
const [rows] = await pool.execute(sql, parameters ?? []);
|
|
219
217
|
if (Array.isArray(rows))
|
|
220
218
|
return rows;
|