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

Compare commits

4 Commits

Author SHA1 Message Date
lana-k
22120fcff5 Update Home.md 2024-09-17 11:52:20 +02:00
lana-k
c35eaf2c58 Update index.md 2024-09-17 11:41:46 +02:00
lana-k
3e2809655c Update Multiple-CSV-file-import.md 2024-09-17 11:40:08 +02:00
lana-k
783613f55f Update Basic-usage.md 2024-09-17 11:29:37 +02:00
4 changed files with 17 additions and 16 deletions

View File

@@ -1,21 +1,22 @@
# Basic usage # 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 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`, `.db`,`.sqlite` and `.sqlite3`. supported file extentions: `.csv`, `.json`, `.ndjson`, `.db`,`.sqlite` and `.sqlite3`.
![Fig. 1: Welcome page](./img/Screenshot_welcome.png) ![Fig. 1: Welcome page](./img/Screenshot_welcome.png)
If you choose a CSV file it will be parsed. Then sqliteviz creates a new If you choose a CSV, JSON or NDJSON file it will be parsed. Then sqliteviz creates a new
database with data from the CSV. You can change parsing settings and table name database with data from the file. You can change table name
in the dialog which is shown automatically if you choose a CSV file (fig. 2). 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) ![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 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). of how to do it will be opened automatically (fig. 3).

View File

@@ -3,7 +3,7 @@ Welcome to the sqliteviz wiki!
# For users # For users
1. [Installation][0] 1. [Installation][0]
2. [Basic usage][1] 2. [Basic usage][1]
3. [Multiple CSV file import][9] 3. [Multiple file import][9]
4. [Manage inquiries][2] 4. [Manage inquiries][2]
5. [Export current database][4] 5. [Export current database][4]
6. [Pivot table][3] 6. [Pivot table][3]

View File

@@ -1,12 +1,12 @@
# Multiple CSV file import # Multiple CSV, JSON or NDJSON file import
Sometimes it's useful to import several CSV files as tables in one database. For Sometimes it's useful to import several files as tables in one database. For
example, to be able to `JOIN` them in SQL. example, to be able to `JOIN` them in SQL.
In sqliteviz you can not only create a database from a CSV file, but also add In sqliteviz you can not only create a database from a CSV, JSON or NDJSON file, but also add
another table from CSV to the existing database. another table from CSV, JSON or NDJSON to the existing database.
- Click ![](./img/add-csv.svg) icon in the schema panel on `Workspace` - Click ![](./img/add-csv.svg) icon in the schema panel on `Workspace`
page page
- Choose a CSV file - Choose a file
- Import it with `CSV import` dialog. - Import it with `import` dialog.

View File

@@ -1,11 +1,11 @@
# Introduction # Introduction
Sqliteviz is a single-page offline-first PWA for fully client-side visualisation of SQLite databases or CSV files. Sqliteviz is a single-page offline-first PWA for fully client-side visualisation of SQLite databases, CSV, JSON or NDJSON files.
With sqliteviz you can: With sqliteviz you can:
- run SQL queries against a SQLite database and create Plotly charts and pivot tables based on the result sets - run SQL queries against a SQLite database and create Plotly charts and pivot tables based on the result sets
- import a CSV file into a SQLite database and visualize imported data - import a CSV, JSON or NDJSON file into a SQLite database and visualize imported data
- export result set to CSV file - export result set to CSV file
- manage inquiries and run them against different databases - manage inquiries and run them against different databases
- import/export inquiries from/to a JSON file - import/export inquiries from/to a JSON file