insertion

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertMany

func InsertMany(client *mongo.Client, ctx context.Context, dataBase, col string, doc []interface{}) (*mongo.InsertManyResult, error)

InsertMany is a user defined method, used to insert documents into collection returns result of InsertOne and error if any.

func InsertOne

func InsertOne(client *mongo.Client, ctx context.Context, dataBase, col string, doc interface{}) (*mongo.InsertOneResult, error)

InsertOne is a user defined method, used to insert documents into collection returns result of InsertOne and error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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