|
40 | 40 | _ Find = (*OptReturnKey)(nil)
|
41 | 41 | _ Find = (*OptShowRecordID)(nil)
|
42 | 42 | _ Find = (*OptSkip)(nil)
|
43 |
| - _ Find = (*OptSnapshot)(nil) |
44 | 43 | _ Find = (*OptSort)(nil)
|
45 | 44 | _ One = (*OneBundle)(nil)
|
46 | 45 | _ One = (*OptAllowPartialResults)(nil)
|
|
60 | 59 | _ One = (*OptReturnKey)(nil)
|
61 | 60 | _ One = (*OptShowRecordID)(nil)
|
62 | 61 | _ One = (*OptSkip)(nil)
|
63 |
| - _ One = (*OptSnapshot)(nil) |
64 | 62 | _ One = (*OptSort)(nil)
|
65 | 63 | _ ReplaceOne = (*ReplaceOneBundle)(nil)
|
66 | 64 | _ ReplaceOne = (*OptBypassDocumentValidation)(nil)
|
@@ -213,13 +211,6 @@ func Skip(i int64) OptSkip {
|
213 | 211 | return OptSkip(i)
|
214 | 212 | }
|
215 | 213 |
|
216 |
| -// Snapshot prevents the cursor from returning a document more than once because of an |
217 |
| -// intervening write operation. |
218 |
| -// Find, One |
219 |
| -func Snapshot(b bool) OptSnapshot { |
220 |
| - return OptSnapshot(b) |
221 |
| -} |
222 |
| - |
223 | 214 | // Sort specifies the order in which to return results.
|
224 | 215 | // Find, One, DeleteOne, ReplaceOne, UpdateOne
|
225 | 216 | func Sort(sort interface{}) OptSort {
|
@@ -638,23 +629,6 @@ func (opt OptSkip) ConvertFindOneOption() option.FindOptioner {
|
638 | 629 | return option.OptSkip(opt)
|
639 | 630 | }
|
640 | 631 |
|
641 |
| -// OptSnapshot prevents the cursor from returning a document more than once because of an |
642 |
| -// intervening write operation. |
643 |
| -type OptSnapshot option.OptSnapshot |
644 |
| - |
645 |
| -func (OptSnapshot) find() {} |
646 |
| -func (OptSnapshot) one() {} |
647 |
| - |
648 |
| -// ConvertFindOption implements the Find interface. |
649 |
| -func (opt OptSnapshot) ConvertFindOption() option.FindOptioner { |
650 |
| - return option.OptSnapshot(opt) |
651 |
| -} |
652 |
| - |
653 |
| -// ConvertFindOneOption implements the One interface. |
654 |
| -func (opt OptSnapshot) ConvertFindOneOption() option.FindOptioner { |
655 |
| - return option.OptSnapshot(opt) |
656 |
| -} |
657 |
| - |
658 | 632 | // OptSort specifies the order in which to return results.
|
659 | 633 | type OptSort option.OptSort
|
660 | 634 |
|
|
0 commit comments