Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 1.8% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/globalsign/mgo
Package mgo (pronounced as "mango") offers a rich MongoDB driver for Go. Detailed documentation of the API is available at GoDoc: 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. There is a sub-package that provides support for BSON, which can be used by itself as well: For more details, see the documentation for the types and methods.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/globalsign/mgo
Keywords:
golang
, mongodb
License: BSD-2-Clause
Latest release: almost 6 years ago
First release: almost 7 years ago
Namespace: github.com/globalsign
Dependent packages: 1,698
Dependent repositories: 19,023
Stars: 1,954 on GitHub
Forks: 237 on GitHub
Docker dependents: 131
Docker downloads: 2,007,088,715
See more repository details: repos.ecosyste.ms
Last synced: 10 days ago