mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-03 14:38:50 +00:00
fix: leftover console.log, typeCast
This commit is contained in:
1 file changed
-3
@@ -29,7 +29,6 @@ const pool = createPool({
|
|||||||
database: config.endpoint,
|
database: config.endpoint,
|
||||||
charset: "utf8mb4_unicode_ci",
|
charset: "utf8mb4_unicode_ci",
|
||||||
namedPlaceholders: true,
|
namedPlaceholders: true,
|
||||||
typeCast: false,
|
|
||||||
...config.options,
|
...config.options,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -62,8 +61,6 @@ const execute = async (query, parameters) => {
|
|||||||
try {
|
try {
|
||||||
const [formattedQuery, formattedParameters] = formatQuery(query, parameters);
|
const [formattedQuery, formattedParameters] = formatQuery(query, parameters);
|
||||||
|
|
||||||
console.log(formattedQuery);
|
|
||||||
|
|
||||||
const startTime = process.hrtime.bigint();
|
const startTime = process.hrtime.bigint();
|
||||||
const [result] = await pool.execute(formattedQuery, formattedParameters);
|
const [result] = await pool.execute(formattedQuery, formattedParameters);
|
||||||
const executionTime = Number(process.hrtime.bigint() - startTime) / 1000000;
|
const executionTime = Number(process.hrtime.bigint() - startTime) / 1000000;
|
||||||
|
|||||||
Reference in new issue
Block a user