Ecosyste.ms: Packages

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

Top 1.0% on proxy.golang.org
Top 1.1% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 1.0% forks on proxy.golang.org
Top 1.3% docker downloads on proxy.golang.org

proxy.golang.org : gocloud.dev/docstore/mongodocstore

Package mongodocstore provides a docstore implementation for MongoDB and MongoDB-compatible services hosted on-premise or by cloud providers, including Amazon DocumentDB and Azure Cosmos DB. For docstore.OpenCollection, mongodocstore registers for the scheme "mongo". The default URL opener will dial a Mongo server using the environment variable "MONGO_SERVER_URL". To customize the URL opener, or for more details on the URL format, see URLOpener. See https://gocloud.dev/concepts/urls/ for background information. mongodocstore uses the unordered BulkWrite call of the underlying driver for writes, and uses Find with a list of document IDs for Get. (These implementation choices are subject to change.) It calls the BeforeDo function once before each call to the underlying driver. The as function passed to the BeforeDo function exposes the following types: mongodocstore exposes the following types for As: MongoDB represents times to millisecond precision, while Go's time.Time type has nanosecond precision. To save time.Times to MongoDB without loss of precision, save the result of calling UnixNano on the time. The official Go driver for MongoDB, go.mongodb.org/mongo-driver/mongo, lowercases struct field names; other docstore drivers do not. This means that you have to choose between interoperating with the MongoDB driver and interoperating with other docstore drivers. See Options.LowercaseFields for more information.

Registry - Source - Documentation - JSON
purl: pkg:golang/gocloud.dev/docstore/mongodocstore
Keywords: aws, azure, cloud, gcp, go, golang, hybrid-cloud, multi-cloud, portable, server
License: Apache-2.0
Latest release: 5 months ago
First release: almost 5 years ago
Namespace: gocloud.dev/docstore
Dependent packages: 16
Dependent repositories: 39
Stars: 9,128 on GitHub
Forks: 795 on GitHub
Docker dependents: 9
Docker downloads: 1,321
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

    Loading...
    Readme
    Loading...