Przetwarzanie danych w wierszu poleceń
Susan Sun
Data Person
csvsql:
Dodatkowe argumenty:
--insert--db--no-inference & --no-constraintsPrzykładowa składnia:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Uwaga:
Podział wiersza poprawia czytelność kodu
Trzy ukośniki poprzedzają nazwę bazy danych
Rozszerzenie .db dla bazy SQLITE
Przykładowa składnia:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Dokumentacja:
csvsql -h
--insert In addition to creating the table, also insert the
data into the table. Only valid when --db is specified.
Przykładowa składnia:
csvsql --no-inference --no-constraints \
--db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Dokumentacja:
csvsql -h
--no-inference Disable type inference when parsing the input.
--no-constraints Generate a schema without length limits or null checks.
Przetwarzanie danych w wierszu poleceń