mongo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBEngine

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

func OpenMongoDB

func OpenMongoDB(addr, dbname, user, passowrd string) (*MongoDBEngine, error)

func (*MongoDBEngine) Close

func (e *MongoDBEngine) Close()

func (*MongoDBEngine) Del

func (e *MongoDBEngine) Del(attrName string, attrID interface{}) error

func (*MongoDBEngine) Exists

func (e *MongoDBEngine) Exists(attrName string, attrID interface{}) (bool, error)

func (*MongoDBEngine) Insert

func (e *MongoDBEngine) Insert(attrName string, attrID interface{}, data map[string]interface{}) error

func (*MongoDBEngine) IsEOF

func (e *MongoDBEngine) IsEOF(err error) bool

func (*MongoDBEngine) Query

func (e *MongoDBEngine) Query(attrName string) (func() (attrID interface{}, data map[string]interface{}, hasMore bool), error)

func (*MongoDBEngine) Read

func (e *MongoDBEngine) Read(attrName string, attrID interface{}) (map[string]interface{}, error)

func (*MongoDBEngine) ReadAll

func (e *MongoDBEngine) ReadAll(attrName string) ([]interface {
	GetAttrID() interface{}
	GetData() map[string]interface{}
}, error)

func (*MongoDBEngine) Write

func (e *MongoDBEngine) Write(attrName string, attrID interface{}, data map[string]interface{}) error

Jump to

Keyboard shortcuts

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