@sqlanvil/cli 1.29.0 → 1.30.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/bundle.js +15 -9
- package/package.json +2 -2
package/bundle.js
CHANGED
|
@@ -49787,7 +49787,7 @@ function setOrValidateTableEnumType(table) {
|
|
|
49787
49787
|
function prune(compiledGraph, runConfig) {
|
|
49788
49788
|
compiledGraph.tables.forEach(setOrValidateTableEnumType);
|
|
49789
49789
|
const includedActionNames = computeIncludedActionNames(compiledGraph, runConfig);
|
|
49790
|
-
return Object.assign(Object.assign({}, compiledGraph), { tables: compiledGraph.tables.filter(action => includedActionNames.has(targetAsReadableString(action.target))), assertions: compiledGraph.assertions.filter(action => includedActionNames.has(targetAsReadableString(action.target))), operations: compiledGraph.operations.filter(action => includedActionNames.has(targetAsReadableString(action.target))), exports: compiledGraph.exports.filter(action => includedActionNames.has(targetAsReadableString(action.target))), imports: compiledGraph.imports.filter(action => includedActionNames.has(targetAsReadableString(action.target))), extracts: (compiledGraph.extracts || []).filter(action => includedActionNames.has(targetAsReadableString(action.target))), scripts: (compiledGraph.scripts || []).filter(action => includedActionNames.has(targetAsReadableString(action.target))) });
|
|
49790
|
+
return Object.assign(Object.assign({}, compiledGraph), { tables: compiledGraph.tables.filter(action => includedActionNames.has(targetAsReadableString(action.target))), assertions: compiledGraph.assertions.filter(action => includedActionNames.has(targetAsReadableString(action.target))), operations: compiledGraph.operations.filter(action => includedActionNames.has(targetAsReadableString(action.target))), exports: compiledGraph.exports.filter(action => includedActionNames.has(targetAsReadableString(action.target))), imports: compiledGraph.imports.filter(action => includedActionNames.has(targetAsReadableString(action.target))), extracts: (compiledGraph.extracts || []).filter(action => includedActionNames.has(targetAsReadableString(action.target))), scripts: (compiledGraph.scripts || []).filter(action => includedActionNames.has(targetAsReadableString(action.target))), targets: (compiledGraph.targets || []).filter(target => includedActionNames.has(targetAsReadableString(target))) });
|
|
49791
49791
|
}
|
|
49792
49792
|
function computeIncludedActionNames(compiledGraph, runConfig) {
|
|
49793
49793
|
var _a, _b, _c;
|
|
@@ -51079,8 +51079,8 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
|
|
|
51079
51079
|
.filter(validationQuery => !!validationQuery.query);
|
|
51080
51080
|
}
|
|
51081
51081
|
|
|
51082
|
-
const version = "1.
|
|
51083
|
-
const dataformVersion = "3.0.
|
|
51082
|
+
const version = "1.30.0";
|
|
51083
|
+
const dataformVersion = "3.0.64";
|
|
51084
51084
|
|
|
51085
51085
|
async function build(compiledGraph, runConfig, dbadapter) {
|
|
51086
51086
|
const prunedGraph = prune(compiledGraph, runConfig);
|
|
@@ -51338,7 +51338,7 @@ async function compile(compileConfig = {}) {
|
|
|
51338
51338
|
const decodedResult = decode64(sqlanvil.CoreExecutionResponse, result);
|
|
51339
51339
|
compiledGraph = sqlanvil.CompiledGraph.create(decodedResult.compile.compiledGraph);
|
|
51340
51340
|
if (workflowSettingsSqlanvilCoreVersion) {
|
|
51341
|
-
fs__namespace.
|
|
51341
|
+
fs__namespace.removeSync(temporaryProjectPath);
|
|
51342
51342
|
}
|
|
51343
51343
|
return compiledGraph;
|
|
51344
51344
|
}
|
|
@@ -57709,11 +57709,17 @@ function dotRepresentation(graph, interactive) {
|
|
|
57709
57709
|
return `digraph {\n${nodes.join(";\n")};\n${edges.join(";\n")};\n}`;
|
|
57710
57710
|
}
|
|
57711
57711
|
function printExecutedActionErrors(executedAction, executionAction) {
|
|
57712
|
-
|
|
57713
|
-
|
|
57714
|
-
|
|
57715
|
-
|
|
57716
|
-
}
|
|
57712
|
+
executedAction.tasks.forEach((task, i) => {
|
|
57713
|
+
var _a;
|
|
57714
|
+
if (task.status !== sqlanvil.TaskResult.ExecutionStatus.FAILED) {
|
|
57715
|
+
return;
|
|
57716
|
+
}
|
|
57717
|
+
const statement = (_a = executionAction.tasks[i]) === null || _a === void 0 ? void 0 : _a.statement;
|
|
57718
|
+
if (statement) {
|
|
57719
|
+
statement.split("\n").forEach(line => {
|
|
57720
|
+
writeStdErr(`${DEFAULT_PROMPT}${line}`, 1);
|
|
57721
|
+
});
|
|
57722
|
+
}
|
|
57717
57723
|
printError(task.errorMessage, 1);
|
|
57718
57724
|
});
|
|
57719
57725
|
}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"pg": "^8.11.3",
|
|
18
18
|
"pg-query-stream": "^4.5.3",
|
|
19
19
|
"promise-pool-executor": "^1.1.1",
|
|
20
|
-
"protobufjs": "^7.6.
|
|
20
|
+
"protobufjs": "^7.6.5",
|
|
21
21
|
"readline-sync": "^1.4.9",
|
|
22
22
|
"semver": "^7.5.2",
|
|
23
23
|
"tarjan-graph": "^2.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"bin": {
|
|
74
74
|
"sqlanvil": "bundle.js"
|
|
75
75
|
},
|
|
76
|
-
"version": "1.
|
|
76
|
+
"version": "1.30.0",
|
|
77
77
|
"name": "@sqlanvil/cli",
|
|
78
78
|
"description": "sqlanvil command line interface.",
|
|
79
79
|
"main": "bundle.js"
|