mongo

package
v0.0.0-...-2c24670 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MDb      *mgo.Database
	Error    error
	MongoUrl string
	Msession *mgo.Session
)

Functions

func EnsureLocationIndex

func EnsureLocationIndex(collection *mgo.Collection) error

func InCollection

func InCollection(collection *mgo.Collection, selector interface{}) bool

InCollection returns whether document(s) matching the query the specified collection exist

func UniqueInCollection

func UniqueInCollection(collection *mgo.Collection, selector interface{}) bool

UniqueInCollection returns whether one and only one document matching the query in the specified collection exists.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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