An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.6% on proxy.golang.org
Top 0.4% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 6.5% forks on proxy.golang.org
Top 1.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/juju/mgo/v2

Package mgo offers a rich MongoDB driver for Go. Details about the mgo project (pronounced as "mango") are found in its web page: Usage of the driver revolves around the concept of sessions. To get started, obtain a session using the Dial function: This will establish one or more connections with the cluster of servers defined by the url parameter. From then on, the cluster may be queried with multiple consistency rules (see SetMode) and documents retrieved with statements such as: New sessions are typically created by calling session.Copy on the initial session obtained at dial time. These new sessions will share the same cluster information and connection pool, and may be easily handed into other methods and functions for organizing logic. Every session created must have its Close method called at the end of its life time, so its resources may be put back in the pool or collected, depending on the case. For more details, see the documentation for the types and methods.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/juju/mgo/v2
License: BSD-2-Clause
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/juju/mgo
Dependent packages: 117
Dependent repositories: 383
Stars: 1 on GitHub
Forks: 10 on GitHub
Docker dependents: 7
Docker downloads: 492
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago

    Loading...
    Readme
    Loading...