Data Processing in Shell
Susan Sun
Data Person
csvsql:
Další argumenty:
--insert--db--no-inference & --no-constraintsPříklad syntaxe:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Poznámka:
Zalomení řádku zachovává přehlednost kódu
Tři lomítka uvozují název databáze
Přípona .db označuje databázi SQLite
Příklad syntaxe:
csvsql --db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Dokumentace:
csvsql -h
--insert In addition to creating the table, also insert the
data into the table. Only valid when --db is specified.
Příklad syntaxe:
csvsql --no-inference --no-constraints \
--db "sqlite:///SpotifyDatabase.db" \
--insert Spotify_MusicAttributes.csv
Dokumentace:
csvsql -h
--no-inference Disable type inference when parsing the input.
--no-constraints Generate a schema without length limits or null checks.
Data Processing in Shell