1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

Update schema view after script running #38

This commit is contained in:
lana-k
2021-04-27 15:54:51 +02:00
parent 453098b410
commit 35baaf2722
2 changed files with 79 additions and 17 deletions

View File

@@ -108,8 +108,11 @@ export default {
this.isGettingResults = true
this.result = null
this.error = null
const state = this.$store.state
try {
this.result = await this.$store.state.db.execute(this.query + ';')
this.result = await state.db.execute(this.query + ';')
const schema = await state.db.getSchema(state.dbName)
this.$store.commit('saveSchema', schema)
} catch (err) {
this.error = err
}