collectionModel

package
v0.0.0-...-edc8300 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Init

type Init struct {
	Client         *mongo.Client
	DatabaseName   string
	CollectionName string
	QueryColumn    bson.M
	FindType       string

	AssignModel bool
	// contains filtered or unexported fields
}

func (*Init) Assign

func (this *Init) Assign(modelInterface interface{})

func (*Init) Create

func (this *Init) Create(dataModel interface{})

func (*Init) Find

func (this *Init) Find(queryModel bson.M) *Init

func (*Init) FindOne

func (this *Init) FindOne(queryModel bson.M) *Init

func (*Init) Get

func (this *Init) Get() interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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