db

package
v0.5.6-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(collection string, filter bson.D) (error, int64)

func DeleteMany

func DeleteMany(collection string, filter bson.D) error

func DeleteOne

func DeleteOne(collection string, filter bson.D) error

func FindMany

func FindMany(collection string, filter bson.D) ([]interface{}, error)

func FindManyResults

func FindManyResults(collection string, filter bson.D) ([]internaltypes.Result, error)

func FindOne

func FindOne(collection string, filter bson.D, doc interface{}) error

func FindOneWorkflow

func FindOneWorkflow(collection string, filter bson.D, doc internaltypes.Workflow) error

func Init

func Init()

func InsertMany

func InsertMany(collection string, docs []interface{}) error

func InsertOne

func InsertOne(collection string, doc interface{}) error

func ReplaceOne

func ReplaceOne(collection string, filter interface{}, replacement interface{}) error

func UpdateByID

func UpdateByID(collection string, id string, update interface{}) error

func UpdateMany

func UpdateMany(collection string, filter bson.D, update bson.D) error

func UpdateOne

func UpdateOne(collection string, filter bson.D, update interface{}) error

func WebSocket

func WebSocket(ws *websocket.Conn)

Types

This section is empty.

Jump to

Keyboard shortcuts

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