Socket
Book a DemoInstallSign in
Socket

connection-store

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

connection-store

A store for database connection

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

connection-store

A simple library for the database connections management.

var ConnectionStore = require('connection-store');

// For the default connection
ConnectionStore.addConnection(someConnection);

// For a named connection
ConnectionStore.addConnection('anotherConnection', anotherConnection);

// Retrieve the default connection
var conn = ConnectionStore.getConnection();

// Retrieve a named connection
var conn = ConnectionStore.getConnection('someName');

// Retrieve the connection list
ConnectionStore.getConnectionList();

ConnectionStore.hasConnection('someName')

FAQs

Package last updated on 19 Jan 2015

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