db

package
v0.0.0-...-f0e6328 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 Db

type Db interface {
	Connect()
	GetOneRecord(req *DbDMLRequest) bool
	GetManyRecords(req *DbDMLRequest) bool
	InsertRecord(req *DbDMLRequest) bool
	EditRecord(req *DbDMLRequest) bool
}

type DbDMLRequest

type DbDMLRequest interface {
	// contains filtered or unexported methods
}

type MongoReq

type MongoReq struct {
	Bson interface{}
}

type MongoUserCollection

type MongoUserCollection struct {
	// contains filtered or unexported fields
}
var (
	DbCon MongoUserCollection
)

func (*MongoUserCollection) Connect

func (self *MongoUserCollection) Connect()

func (*MongoUserCollection) GetOneRecord

func (self *MongoUserCollection) GetOneRecord(req DbDMLRequest, v interface{}) (interface{}, error)

func (*MongoUserCollection) InsertRecord

func (self *MongoUserCollection) InsertRecord(req DbDMLRequest) error

Jump to

Keyboard shortcuts

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