database

package
v0.0.0-...-a021f40 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Save(payload interface{}, out interface{}) error
	SaveMany(payload []interface{}) error
	FindById(id interface{}, projection map[string]interface{}, result interface{}) error
	FindOne(fields, projection map[string]interface{}, result interface{}) error
	FindMany(fields, projection, sort map[string]interface{}, limit, skip int64, results interface{}) error
	UpdateById(id interface{}, payload interface{}) error
	UpdateOne(fields map[string]interface{}, payload interface{}) error
	UpdateMany(fields, payload map[string]interface{}) error
	DeleteById(id interface{}) error
	DeleteOne(fields map[string]interface{}) error
	DeleteMany(fields map[string]interface{}) error
	Aggregate(pipelines interface{}, result interface{}, allowDiskUse bool) error
	Count(fields interface{}) (int64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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