1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: drop and truncate tables

This commit is contained in:
2020-12-03 16:15:10 +01:00
parent e6602d1bfa
commit a4122b4eaa
9 changed files with 148 additions and 43 deletions

View File

@ -122,7 +122,12 @@ export default {
return this.results.length ? this.results[0].keys : [];
},
tableInfo () {
return this.workspace.structure.find(db => db.name === this.schema).tables.find(table => table.name === this.table);
try {
return this.workspace.structure.find(db => db.name === this.schema).tables.find(table => table.name === this.table);
}
catch (err) {
return { rows: 0 };
}
}
},
watch: {