- Consume a CSV file, parse the data, and insert valid records into a SQLite DB.
- Verify each record needs to ensure it contains the right number of data elements (10).
- Write the records that did not have the right number of data elements to a .csv file.
- After processing the data, write the following information to a .log file: a. # of records received b. # of records successful c. # of records failed
- SQLite3: https://www.sqlite.org/index.html
- Node & NPM: https://nodejs.org/en/download/
- After installing SQLite3 and Node/NPM, run "npm install" on command line.
- Run "node index.js" on command line.
- Output should include output-bad.csv file, an output.log file and a interviews.db file.
I cleaned up the data before running the program to eliminate all of the extra trailing commas. I did this by running:
sed 's/,,,,,//g' ms3Interview-copy.csv > cleanedms3Interview.csv
The cleaned-up .csv file is what is included in this directory.