Updated on 2023-11-21 GMT+08:00

Driver Package

GeminiDB Mongo allows you to operate data using Go. You can connect to an instance through an SSL connection or an unencrypted connection. SSL connection is more secure.

SSL is disabled by default for a new GeminiDB Mongo instance. To enable SSL, see Enabling SSL.

Downloading the Driver

To download the driver, go.mod is recommended.

require go.mongodb.org/mongo-driver v1.7.6

Import the go files.

import (
"go.mongodb.org/mongo-driver/bson"    
"go.mongodb.org/mongo-driver/mongo"    
"go.mongodb.org/mongo-driver/mongo/options"    
"go.mongodb.org/mongo-driver/mongo/readpref" 
)