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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user