parent
08c3c5b377
commit
b796d5ac3b
@ -1,19 +0,0 @@ |
||||
package database |
||||
|
||||
import ( |
||||
"context" |
||||
|
||||
"github.com/mainnika/mongox-go-driver/v2/mongox/query" |
||||
) |
||||
|
||||
func onDecode(ctx context.Context, iter interface{}, callbacks ...query.OnDecode) (err error) { |
||||
|
||||
for _, cb := range callbacks { |
||||
err = cb(ctx, iter) |
||||
if err != nil { |
||||
return |
||||
} |
||||
} |
||||
|
||||
return |
||||
} |
Loading…
Reference in new issue