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 ( import (
"gitbase.de/gopackage/mgocrud/v2" "gitbase.de/gopackage/mgocrud/v2"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
) )
@@ -56,9 +55,7 @@ type Query interface {
Count() (int, error) Count() (int, error)
} }
type Index interface { type Index interface{}
NewMgoIndex(index mgo.Index) Index
}
type Pipe interface { type Pipe interface {
All(result interface{}) error All(result interface{}) error