Drivers
6 results found
-
Make the Go driver interface based so that it can be easily mocked for unitTests.
Provide interfaces for driver classes that can be used to mock the database for unit tests. Along the lines of what AWS does for its services:
https://aws.amazon.com/blogs/developer/mocking-out-then-aws-sdk-for-go-for-unit-testing/2 votes -
2 votes
-
Add support for directly marshaling arrays and slices to Extended JSON
The Extended JSON encoder does not support encoding arrays and slices by themselves. The decoder does support decoding JSON arrays into slices. Add support for encoding arrays and slices to a JSON array.
2 votes -
Provide a mechanism for specifying default database name in connection string
According to https://jira.mongodb.org/browse/GODRIVER-914 the connection string is only meant to specify the auth database. However, many of the official MongoDB drivers and tools also use the database specified in the connection string as the default if commands are run without specifying a database name.
The Go driver should either mirror this behaviour found in other drivers, or a parameter should be added to the connection string to allow a default database to be explicitly defined.
2 votes -
Golang Driver - MongoDB-AWS Authentication support for any short-lived STS token
The Golang driver supports "MONGODB-AWS" AuthMechanism when you have:
- a
AWS_WEB_IDENTITY_TOKEN_FILE
andROLE_ARN
environment variable, eg when supplied by IAM Roles for Service Accounts (IRSA), typical in Kubernetes clusters (assume_role_provider
) - a
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
environment variable, typical in AWS Elastic Container Service (ECS) clusters (ecs_provider
) - an AWS EC2 Instance Profile attached, such as when running on an EC2 instance with the Instance Metadata Service enabled. (
ec2_provider
) - IAM User or STS keys - either directly as environment variables, or via directly setting on a Credential object (
env_provider
andstatic_provider
)
These are all in the mongo-go-driver…
1 vote - a
-
Have option to auto add/update timestamp
It would be great if driver can auto update createdat and updatedat timestamp/date
1 vote
- Don't see your idea?