I get a txt file via http, clean it up and save it to csv. I was just thinking about getting the payload before writing it to file and connect it to the SQLite node. Now I have to figure out how to do that
And yes, I found this tutorial on how to do it through the terminal - but I need something automatic.
To be honest, it looks like you really don't need the CSV file? Do you want to just push the http data into SQLite because you can do that directly(ish) in Node-RED.
There is a node that uses ALAsql that ought to be able to do this for you as well but unfortunately, although the underlying ALAsql module supports SQLite, I don't think that contrib-alasql author has included that feature.
thank you - alaSQL does look interesting. Documentation seems a bit rare - I will have to play with it a bit to see if I can make it work. I already have it reading the CSV file and creating/reading tables. It might be the solution I was looking for.
And yes, you are right - I would not need the CSV for SQLite. I need the option to backup to CSV and since I already had that file, I hoped that I could use it.
For what you want to do, you would be much better off splitting the flow so that one branch writes the CSV and the other writes to the db. If you need to extract a table from the HTML, the html node will do that for you (or if it is too complex, try one of the cheerio nodes). The csv node followed by a file out node should create the CSV for you.