https://github.com/zamb0/csvtorelax
Convert CSV file to readable RelaX format
https://github.com/zamb0/csvtorelax
Last synced: 9 months ago
JSON representation
Convert CSV file to readable RelaX format
- Host: GitHub
- URL: https://github.com/zamb0/csvtorelax
- Owner: zamb0
- License: mit
- Created: 2021-10-22T13:55:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T22:56:18.000Z (over 4 years ago)
- Last Synced: 2025-02-10T06:45:13.118Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSVtoRelaX
convert CSV file to readable RelaX format
[how to import](HOW_TO_IMPORT.md) your db in [RelaX](https://dbis-uibk.github.io/relax/calc/local/uibk/local/3)
## Usage
```
python3 main.py -i dir_path -o out_file [-g name_of_group] [-d desc]
```
## Arguments:
| Argument | Description |
| --- | --- |
| -h, --help | Show help message and exit |
| -i dir_path | The directory with CSV files |
| -o out_file | Path of the output file |
| -g name_of_group | Name of the RelaX Dataset Group |
| -d desc | RelaX Dataset Group description |
## Example
Directory Database:
```
RelazioniAlgebra
```
CVS Tables:
```
dipart.csv
dipendenti.csv
fornitori.csv
forniture.csv
parti.csv
prodotti.csv
sped_dettagli.csv
spedizioni.csv
```
Command:
```
python3 main.py -i RelazioniAlgebra/ -o RelazioniAlgebra.txt -g RelazioniAlgebra -d test_relazioni_algebra
```
Output:
```
RelazioniAlgebra.txt
```