tokei icon indicating copy to clipboard operation
tokei copied to clipboard

Feature: support output to sqlite

Open adam-moss opened this issue 4 years ago • 3 comments

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

adam-moss avatar Jul 25 '20 00:07 adam-moss

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…

gilcot avatar Aug 05 '20 11:08 gilcot

True, #558 would make this redundant

adam-moss avatar Aug 05 '20 11:08 adam-moss

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.

XAMPPRocky avatar Aug 05 '20 15:08 XAMPPRocky