logoalt Hacker News

trgntoday at 5:44 PM3 repliesview on HN

im sure, but honestly, i would love to have a db engine that just writes/reads csv or json. does it exist?


Replies

banana_giraffetoday at 5:51 PM

DuckDB can do exactly this, once you get the API working in your system, it becomes something simple like

    SELECT \* from read_csv('example.csv');
Writing generally involves reading to an in-memory database, making whatever changes you want, then something like

    COPY new_table TO 'example.csv' (HEADER true, DELIMITER ',');
herpdyderptoday at 5:47 PM

I wrote a CSV DB engine once! I can't remember why. For fun?

show 1 reply
akdev1ltoday at 6:29 PM

SQLite can do it

show 1 reply