XAMPPRocky / tokei

Count your code, quickly.
Other
11.11k stars 532 forks source link

Feature: support output to sqlite #594

Open adam-moss opened 4 years ago

adam-moss commented 4 years ago

Hi,

It would be useful if tokei could output to sqlite, appending on each run, for time-series type analysis.

cloc already has this feature implemented, albeit it is less robust when processing repos generally.

Cheers

gilcot commented 4 years ago

It outputs to well defined file formats and should keep doing so, then no direct interfacing to sqlite or some other. Of course it may output SQL format (but there's a canvat because in an INSERT statement one need to target a table and know column names), but simple CSV is often suffisant: sqlite and other DBMS know how to import such format.

For time-series analysis, the CSV should be generated with RRD in ming…

adam-moss commented 4 years ago

True, #558 would make this redundant

XAMPPRocky commented 4 years ago

Thank you for your issue! I would be okay with adding support for this if there's a serde crate that can generate that style of output.