2022-07-15 20:17:49 +00:00
|
|
|
# SQLITE Test Area
|
|
|
|
|
|
|
|
This is a small test area how to edit SQLite databases and update some values according to their value.
|
|
|
|
|
2022-07-15 20:30:24 +00:00
|
|
|
## Files
|
2022-07-15 20:17:49 +00:00
|
|
|
|
2022-07-15 20:30:24 +00:00
|
|
|
```
|
2022-07-17 22:12:04 +00:00
|
|
|
├── requirements.txt
|
2022-07-15 20:30:24 +00:00
|
|
|
├── script.sh
|
|
|
|
├── sql
|
|
|
|
│ ├── create_db.sql
|
|
|
|
│ ├── insert_data.sql
|
2022-07-17 22:12:04 +00:00
|
|
|
│ ├── show_all.sql
|
|
|
|
│ ├── show_sg.sql
|
|
|
|
│ └── update_sg.sql
|
|
|
|
├── start.py
|
2022-07-15 20:30:24 +00:00
|
|
|
```
|
|
|
|
|
2022-07-17 22:12:04 +00:00
|
|
|
- `requirements.txt`: requirements for the python script
|
|
|
|
- `script.sh`: Small & ugly script to execute commands inside the sql-files (see `sql/`)
|
2022-07-15 20:30:24 +00:00
|
|
|
- `sql/`
|
|
|
|
- `create_db.sql`: creates the small test database
|
|
|
|
- `insert_data.sql`: insert some fictive test values into the database
|
|
|
|
- `show_all.sql`: Shows all the data inside the database from table customers
|
2022-07-17 22:12:04 +00:00
|
|
|
- `show_sg.sql`: Show all the data which are from St. Gallen (and will get updated)
|
|
|
|
- `update_sg.sql`: Update the entries so the city is written consistent
|
|
|
|
- `start.py`: small python helper script
|