mongodb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	// contains filtered or unexported fields
}

func New

func New(connectionUri string, database string) *MongoDB

func (*MongoDB) Auth

func (db *MongoDB) Auth() error

func (*MongoDB) Close

func (db *MongoDB) Close() error

func (*MongoDB) DriverName

func (db *MongoDB) DriverName() string

func (*MongoDB) InsertBulk

func (db *MongoDB) InsertBulk(collection string, raw []map[string]interface{}) (int, error)

func (*MongoDB) Truncate

func (db *MongoDB) Truncate(collection string) error

Jump to

Keyboard shortcuts

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