@rudsys/n8n-nodes-sqlite3 0.1.6 → 0.1.7
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.
|
@@ -240,9 +240,25 @@ class SqliteSsh {
|
|
|
240
240
|
displayName: 'Table',
|
|
241
241
|
name: 'table',
|
|
242
242
|
type: 'string',
|
|
243
|
-
displayOptions: {
|
|
243
|
+
displayOptions: {
|
|
244
|
+
show: {
|
|
245
|
+
operation: [
|
|
246
|
+
'insert',
|
|
247
|
+
'select',
|
|
248
|
+
'update',
|
|
249
|
+
'delete',
|
|
250
|
+
'manageTables',
|
|
251
|
+
'manageColumns',
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
hide: {
|
|
255
|
+
operation: ['manageTables'],
|
|
256
|
+
tableAction: ['list'],
|
|
257
|
+
},
|
|
258
|
+
},
|
|
244
259
|
default: '',
|
|
245
260
|
required: true,
|
|
261
|
+
description: 'Name of the table',
|
|
246
262
|
},
|
|
247
263
|
// ------------------ Insert Options ------------------
|
|
248
264
|
{
|
|
@@ -519,8 +535,12 @@ class SqliteSsh {
|
|
|
519
535
|
sql = 'VACUUM;';
|
|
520
536
|
}
|
|
521
537
|
const result = await ssh.execCommand(`${binaryPath} -json "${databasePath}" '${sql.replace(/'/g, "'\\''")}'`);
|
|
522
|
-
if (result.code !== 0)
|
|
523
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), result.stderr || 'SQLite Error', {
|
|
538
|
+
if (result.code !== 0) {
|
|
539
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), result.stderr || 'SQLite Error', {
|
|
540
|
+
itemIndex: i,
|
|
541
|
+
description: `Query: ${sql}`,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
524
544
|
if (result.stdout) {
|
|
525
545
|
try {
|
|
526
546
|
const parsed = JSON.parse(result.stdout);
|