make map driver type for faster tests
This commit is contained in:
@@ -37,6 +37,10 @@ func NewMongo(path string) Mongo {
|
||||
}
|
||||
}
|
||||
|
||||
func (m Mongo) Count(_ context.Context, _ string, _ interface{}) (int, error) {
|
||||
return 0, errors.New("not impl")
|
||||
}
|
||||
|
||||
func (m Mongo) Find(ctx context.Context, namespace string, filter interface{}) (chan bson.Raw, error) {
|
||||
c := m.client.Database(m.db).Collection(namespace)
|
||||
cursor, err := c.Find(ctx, filter)
|
||||
|
||||
Reference in New Issue
Block a user