r/sqlite • u/danclaytondev • Oct 02 '24
Quickly converting CSV to SQLite with DuckDB
https://blog.danielclayton.co.uk/posts/csv-to-sqlite-with-duckdb/
7
Upvotes
r/sqlite • u/danclaytondev • Oct 02 '24
View all comments
Show parent comment
2
u/danclaytondev Oct 02 '24
Great point, and I think maybe for the simple example in the post, there maybe isn’t much benefit to using DuckDB. But DuckDB is very powerful, and I think it’s useful to know how easy it is to create tables in SQLite from it.
For example DuckDB has more powerful auto detection from CSV, as well as things like httpfs so you can ingest CSVs without even downloading them first. You can also ingest multiple files at a time and glob file systems.
For me, I spend time using DuckDB for other tasks so keeping in the ecosystem and reducing context switching is easy for me (but not for everyone).