New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pg-json-import

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-json-import

Import an array of data from a json file into a PostgreSQL table

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

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

Install the tool with npm

npm install -g pg-import-json

Usage

  $ pji --file filename.json -c postgresql://localhost:5432/mydb -t tablename
  $ pji --file filename.json --database dbname --table tablename
  $ pji --file filename.json --host host --port port --database dbname --table tablename

  -f, --file file     The JSON file to load
  -c, --connection    A connection string to PostgreSQL. i.e. postgresql://localhost:5432/mydb
  -t, --table         The table name where data should be imported
  --help              show this message

Keywords

postgres

FAQs

Package last updated on 22 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts