/pg-json-import

Import data from a json file to a Postgres DB Table

Primary LanguageJavaScriptMIT LicenseMIT

pg-json-import

pg-json-import lets you take data from a JSON file, and insert it into a table on a postgres DB

Installation an Usage

Download zip folder , extract it and run npm i.

Add JSON file in folder

open cmds.txt and Rename JSON file in each command (exisiting one is all.json) and change postgres connectionstring .

Run commands at cmds.txt in sequence.

Note : be sure table is empty before migrating data