I need some help with querying a LiteDB file.
So far I have tried the following in LiteDB Shell
- show collections (i see two collections exist)
- SELECT $ from (produces “command not found”)
- db.<collection_name>.select $ (produces “command not found”)
- db.<collection_name>.find (produces “no documents” , although in LiteDB Viewer I can see them)
There is a progam (SimHub) that uses the LiteDB file and inserts and retrieves data from it.
I can also select data from the collections using LiteDB Studio.
I would like to create a powershell batch file that does a “select into” so i can get the data into a CSV or text file.
Perhaps someone knows what i’m missing?
Thank you very much !
Juergen
Please see above – basically I like to have a script on my Windows PC that exports all data from a LiteDB file.
I couldn’t find out how to attach the file to this question – it is 300kb , so there definitely is data. Like i sais I can see it in Studio and Viewer.
juergenws cycling is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.