db interface

This commit is contained in:
2022-02-09 20:33:13 +01:00
parent d116f5d938
commit b59be1a9d7

View File

@@ -2,7 +2,6 @@ package mgoapi
import (
"gitbase.de/gopackage/mgocrud/v2"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
@@ -56,9 +55,7 @@ type Query interface {
Count() (int, error)
}
type Index interface {
NewMgoIndex(index mgo.Index) Index
}
type Index interface{}
type Pipe interface {
All(result interface{}) error