database

package
v0.0.0-...-c7ff7ed Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor interface {
	All(dest interface{}) error
	Next() bool
	Decode(dest interface{}) error
	Close() error
}

type Database

type Database interface {
	InsertOne(collectionName string, record interface{}) error
	InsertMany(collectionName string, records ...interface{}) error
	UpdateOne(collectionName string, args ...interface{}) error
	ReplaceOne(collectionName string, record interface{}) error
	FindOne(collectionName string, dest, filter interface{}) error
	FindAll(collectionName string, dest, filter interface{}) error
	Find(collectionName string, filter interface{}) (Cursor, error)
	DeleteOne(collectionName string, filter interface{}) error
	ApplyFilter(filter filters.Filter, valueTypeMap filters.ValueTypeMap, validator filters.Validator) (interface{}, error)
}

Directories

Path Synopsis
databases

Jump to

Keyboard shortcuts

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