mirror of
https://github.com/mainnika/mongox-go-driver.git
synced 2026-07-03 17:22:33 +00:00
Missed docs
This commit is contained in:
@@ -38,6 +38,7 @@ func (l *StreamLoader) DecodeNext() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Decode function decodes the current cursor document into the target
|
||||||
func (l *StreamLoader) Decode() error {
|
func (l *StreamLoader) Decode() error {
|
||||||
|
|
||||||
base.Reset(l.target)
|
base.Reset(l.target)
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ type JSONBased interface {
|
|||||||
SetID(id primitive.D)
|
SetID(id primitive.D)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// InterfaceBased is an interface for documents that have custom declated type for the _id field
|
||||||
type InterfaceBased interface {
|
type InterfaceBased interface {
|
||||||
GetID() interface{}
|
GetID() interface{}
|
||||||
SetID(id interface{})
|
SetID(id interface{})
|
||||||
|
|||||||
Reference in New Issue
Block a user