
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
enmap-pgsql
Advanced tools
Enmap-PGSql is a provider for the [Enmap](https://www.npmjs.com/package/enmap) module.
Enmap-PGSql is a provider for the Enmap module.
enmap-psql requires a PostgreSQL server of version 9.5 or higher due to the use of the new "upsert"-ish feature (on conflict update). Lower versions will not work.
To install Enmap-PGSql simply run npm i enmap-pgsql.
// Load Enmap
const Enmap = require('enmap');
// Load EnmapPGSql
const EnmapPGSql = require('enmap-pgsql');
// Initialize the provider
const provider = new EnmapPGSql({ name: 'test' });
// Initialize the Enmap with the provider instance.
const myColl = new Enmap({ provider: provider });
Shorthand declaration:
const Enmap = require('enmap');
const EnmapPGSql = require('enmap-pgsql');
const myColl = new Enmap({ provider: new EnmapPGSql({ name: 'test' }); });
// Example with all options.
const level = new EnmapPGSql({
name: "test",
user: "postgres",
password: "password",
host: "localhost",
port: 5432,
database: "postgres"
});
// Example with connection string
const level = new EnmapPGSql({
name: "test",
connectionString = "postgresql://dbuser:secretpassword@database.server.com:3211/mydb"
});
Defines the name of the table saved in the database.
I'm tired, I've been trying to get this working for a while, and in this state of mind, my documentation for these fields is:
If you can't figure out what any of those means, you're making me lose faith in humanity.
This can be use alternatively to all of the above, a full connection string to the database. Looks like this:
postgresql://dbuser:secretpassword@database.server.com:3211/mydb
FAQs
Enmap-PGSql is a provider for the [Enmap](https://www.npmjs.com/package/enmap) module.
We found that enmap-pgsql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.