Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] esempio di estrazione in csv #49

Open
ghost opened this issue Jul 23, 2022 · 0 comments
Open

[Doc] esempio di estrazione in csv #49

ghost opened this issue Jul 23, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 23, 2022

Ciao Matteo, per importare i dati dei comuni in mysql ho trasformato i dati da json a csv; da shell linux ho usato:

jq -r '.[] | . as $comune | [$comune.nome, $comune.codice, $comune.codiceCatastale, $comune.sigla, $comune.regione.nome, ($comune.cap | join("-"))] | @csv' comuni.json > comuni.csv

Penso possa essere utile ad altri sviluppatori riportare questo esempio nel README.
Grazie del repo, un saluto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants