@runnerty/executor-snowflake 1.0.0 → 1.0.1
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/index.js +7 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -45,7 +45,13 @@ class snowflakeExecutor extends Executor {
|
|
|
45
45
|
|
|
46
46
|
// Crear conexión y ejecutar consulta
|
|
47
47
|
const connection = await this.createConnection(params);
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
// Verificar parámetros de exportación y ejecutar el método correspondiente
|
|
50
|
+
if (params.fileExport) await this.queryToJSON(connection, query, params);
|
|
51
|
+
if (params.jsonFileExport) await this.queryToJSON(connection, query, params);
|
|
52
|
+
else if (params.xlsxFileExport) await this.queryToXLSX(connection, query, params);
|
|
53
|
+
else if (params.csvFileExport) await this.queryToCSV(connection, query, params);
|
|
54
|
+
else await this.executeQuery(connection, query);
|
|
49
55
|
} catch (error) {
|
|
50
56
|
this.error(error);
|
|
51
57
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runnerty/executor-snowflake",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Runnerty module: Snowflake executor
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Runnerty module: Snowflake executor",
|
|
5
5
|
"author": "Coderty",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "index.js",
|