mongo

package
v0.0.0-...-839f9b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close closes the MongoDB connection.

func Connect

func Connect(uri string) error

Connect establishes a connection to MongoDB.

func Delete

func Delete(collection string, query interface{}) error

Delete deletes records from a MongoDB collection.

func Find

func Find(collection string, query interface{}, result interface{}) error

Find retrieves data from a MongoDB collection.

func Insert

func Insert(collection string, data interface{}) error

Insert inserts data into a MongoDB collection.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL