mongodb

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoAdapter

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

func New

func New(uri string, dbName string) *MongoAdapter

func (*MongoAdapter) Create

func (m *MongoAdapter) Create(entity any) error

func (*MongoAdapter) Delete

func (m *MongoAdapter) Delete(id string, entity any) error

func (*MongoAdapter) FindAll

func (m *MongoAdapter) FindAll(entity any, filters map[string]any, pagination db.Pagination, sort []db.Sort) (any, error)

func (*MongoAdapter) FindByID

func (m *MongoAdapter) FindByID(id string, entity any) (any, error)

func (*MongoAdapter) Init

func (m *MongoAdapter) Init() error

func (*MongoAdapter) Migrate

func (m *MongoAdapter) Migrate(entities []any) error

func (*MongoAdapter) Update

func (m *MongoAdapter) Update(entity any) error

Jump to

Keyboard shortcuts

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