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

node-pgp-postgres

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pgp-postgres

PostgreSQL keyring storage for node-pgp.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

node-pgp-postgres is a PostgreSQL backend for node-pgp. It provides an implementation of the Keyring class that stores keys in database tables.

Use the following code to create an instance of the Keyring class:

var pgpPg = require("node-pgp-postgres");
pgpPg.getKeyring("postgres://postgres@localhost/database", function(err, keyring) {
	if(err)
		; // An error occurred

	// Now we do some stuff with the keyring

	// Once we are finished, we release the database connection:
	keyring.done();
}, true); // If the last parameter is set to true, the database layout will be initialised automatically

The connection string uses the format of node-postgres. It may also be specified as an object of the following format:

{
	user: "postgres",
	password: "password",
	host: "localhost",
	port: 1234,
	database: "database",
	schema: "public"
}

FAQs

Package last updated on 13 Jun 2013

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