clerk

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreate

func NewCreate(collection *Collection, data interface{}) *create

func NewDatabase

func NewDatabase(name string) *database

func NewQuery

func NewQuery(collection *Collection) *query

func NewUpdate

func NewUpdate(collection *Collection, data interface{}) *update

Types

type Collection

type Collection struct {
	Database string
	Name     string
}

func NewCollection

func NewCollection(database string, name string) *Collection

type Creator

type Creator interface {
	Create(collection *Collection, data interface{}) error
}

type Queryer

type Queryer interface {
	Query(collection *Collection, filter map[string]interface{}) ([]interface{}, error)
}

type Updater

type Updater interface {
	Update(collection *Collection, filter map[string]interface{}, data interface{}, upsert bool) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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