_map

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

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

func NewMockDB

func NewMockDB() *MockDB

func (*MockDB) DeleteOne

func (m *MockDB) DeleteOne(filter ...interface{}) error

func (*MockDB) Entity

func (m *MockDB) Entity(name string) mock.Engine

func (*MockDB) FindMany

func (m *MockDB) FindMany(documents interface{}, filter interface{}) error

func (*MockDB) FindOne

func (m *MockDB) FindOne(document interface{}, filter ...interface{}) (bool, error)

func (*MockDB) ID

func (m *MockDB) ID(id string) mock.Engine

func (*MockDB) InsertMany

func (m *MockDB) InsertMany(documents []interface{}) ([]string, error)

func (*MockDB) InsertOne

func (m *MockDB) InsertOne(document interface{}) (id string, err error)

func (*MockDB) UpdateOne

func (m *MockDB) UpdateOne(document interface{}) error

Jump to

Keyboard shortcuts

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