nosql

package
v0.0.0-...-5870b03 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: GPL-3.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 Mongo

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

func NewMongo

func NewMongo(address, dbName string) (m *Mongo, err error)

func (*Mongo) Close

func (m *Mongo) Close()

func (*Mongo) CollectionIsExist

func (m *Mongo) CollectionIsExist(name string) (isExist bool, err error)

func (*Mongo) CollectionNames

func (m *Mongo) CollectionNames() (names []string, err error)

func (*Mongo) DatabaseNames

func (m *Mongo) DatabaseNames() (names []string, err error)

func (*Mongo) DbNameIsExist

func (m *Mongo) DbNameIsExist(name string) (isExist bool, err error)

func (*Mongo) Exec

func (m *Mongo) Exec(colName string, colFunc func(collection *mgo.Collection) error) error

func (*Mongo) SetDbName

func (m *Mongo) SetDbName(dbName string)

Jump to

Keyboard shortcuts

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