
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
= MongoDelegate
A DelegateCollection wraps a local collection and remote collection in one object that implements the Collection interface.
This was inspired by things I’ve been told about Goldman Sachs’ proprietary object database. You can point one database at another remote database, and it will function in this manner.
The classic use case is debugging a production problem, or developing while using production data.
Just create a DelegatingDatabase and pass to your application, wherever you would normally supply a database
db = Mongo::DelegatingDatabase.new(:local => Mongo::Connection.new.db(‘db-name’), :remote => Mongo::Connection.new(‘remote ip’).db(‘db-name’))
Later, anywhere collections are retrieved in your app
coll = db.collection(‘some-collection-name’) # This returns an instance of Mongo::DelegatingCollection
== Note on Patches/Pull Requests
== Copyright
Copyright © 2010 Mike Harris. See LICENSE for details.
FAQs
Unknown package
We found that mongo_delegate 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.