1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00
This commit is contained in:
lana-k
2022-06-24 21:29:40 +02:00
parent a20dd7f849
commit 518b22b489
15 changed files with 193 additions and 16 deletions

View File

@@ -58,6 +58,7 @@ import fIo from '@/lib/utils/fileIo'
import ChangeDbIcon from '@/components/svg/changeDb'
import database from '@/lib/database'
import CsvImport from '@/components/CsvImport'
import { send } from '@/lib/utils/events'
export default {
name: 'DbUploader',
@@ -127,6 +128,13 @@ export default {
if (fIo.isDatabase(file)) {
this.loadDb(file)
} else {
send({
category: 'database',
action: 'import',
value: file.size,
label: 'from=csv new_db=true'
})
this.file = file
await this.$nextTick()
const csvImport = this.$refs.addCsv