Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: support output to sqlite #594

Open
adam-moss opened this issue Jul 25, 2020 · 3 comments
Open

Feature: support output to sqlite #594

adam-moss opened this issue Jul 25, 2020 · 3 comments

Comments

@adam-moss
Copy link

adam-moss commented Jul 25, 2020

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
Copy link

gilcot commented Aug 5, 2020

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
Copy link
Author

True, #558 would make this redundant

@XAMPPRocky
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants