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 = ;pgpPg; // 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: 1234database: "database"schema: "public"