dao

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(URI string, Db string, Coll string) error

Connect to db

func DeleteAll

func DeleteAll() (int64, error)

DeleteAll documents

func DeleteOne

func DeleteOne(id string) (int64, error)

DeleteOne document

func Drop

func Drop() error

Drop collection

func FindAll

func FindAll() ([]models.Document, error)

FindAll documents

func FindId added in v1.1.0

func FindId(id string) ([]models.Document, error)

FindId document

func FindUrl added in v1.1.0

func FindUrl(url string) ([]models.Document, error)

FindUrl document

func InsertMany added in v0.3.4

func InsertMany(dd models.Documents)

InsertMany documents

func InsertOne

func InsertOne(d models.Document) error

InsertOne document

Types

This section is empty.

Jump to

Keyboard shortcuts

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