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

fix column order in result set #74

This commit is contained in:
lana-k
2021-08-10 20:31:12 +02:00
parent 2ed5160f65
commit 9f32323a80
13 changed files with 155 additions and 92 deletions

View File

@@ -44,13 +44,13 @@ export default {
async created () {
const state = this.$store.state
let result = await state.db.execute('select sqlite_version()')
let result = (await state.db.execute('select sqlite_version()')).values
this.info.push({
name: 'SQLite version',
info: result['sqlite_version()']
})
result = await state.db.execute('PRAGMA compile_options')
result = (await state.db.execute('PRAGMA compile_options')).values
this.info.push({
name: 'SQLite compile options',
info: result.compile_options

View File

@@ -38,7 +38,7 @@
<teleport :to="`#${layout.dataView}-${tabIndex}`">
<data-view
:data-source="result"
:data-source="(result && result.values) || null"
:init-options="initViewOptions"
:init-mode="initViewType"
ref="dataView"