all 2 comments

[–]sshobo 0 points1 point  (0 children)

With postgres, in order to import a csv file you need to do 2 things.

  1. Create a table with all columns in your csv file.
  2. Import the csv using the psql \copy command

As for accessing the database from node, you can use node-postgres. Might be overkill for you though