1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

Update Basic-usage.md

This commit is contained in:
lana-k
2024-09-17 11:29:37 +02:00
committed by GitHub
parent 001f400142
commit 783613f55f

View File

@@ -1,21 +1,22 @@
# Basic usage
## Choose SQLite database or CSV file
## Choose SQLite database, CSV file, JSON or NDJSON file
You can choose a database or a CSV file right on the welcom page (fig. 1). The
supported file extentions: `.csv`, `.db`,`.sqlite` and `.sqlite3`.
You can choose a database, a CSV file, a JSON or NDJSON file right on the welcom page (fig. 1). The
supported file extentions: `.csv`, `.json`, `.ndjson`, `.db`,`.sqlite` and `.sqlite3`.
![Fig. 1: Welcome page](./img/Screenshot_welcome.png)
If you choose a CSV file it will be parsed. Then sqliteviz creates a new
database with data from the CSV. You can change parsing settings and table name
in the dialog which is shown automatically if you choose a CSV file (fig. 2).
If you choose a CSV, JSON or NDJSON file it will be parsed. Then sqliteviz creates a new
database with data from the file. You can change table name
in the dialog which is shown automatically if you choose a CSV, JSON or NDJSON file.
For CSV you can also change parsing settings (fig. 2).
![Fig. 2: CSV import dialog](./img/Screenshot_csv.png)
If you don't have a database or CSV press `Create empty database` button and
If you don't have a database or CSV or JSON/NDJSON press `Create empty database` button and
then fill an empty database using DDL and DML statements. A tab with an example
of how to do it will be opened automatically (fig. 3).