|
13 | 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 |
| - |
17 | 16 | """IDL for functions that take flexible options as a bson_t.
|
18 | 17 |
|
19 | 18 | Defines the options accepted by functions that receive a const bson_t *opts,
|
|
25 | 24 | Written for Python 2.6+, requires Jinja 2 for templating.
|
26 | 25 | """
|
27 | 26 |
|
| 27 | +# yapf: disable |
28 | 28 | from collections import OrderedDict
|
29 | 29 | from os.path import basename, dirname, join as joinpath, normpath
|
30 | 30 | import re
|
@@ -292,9 +292,25 @@ def __init__(self, items, **defaults):
|
292 | 292 | ('startAfter', {'type': 'document', 'help': 'A ``Document`` representing the logical starting point of the change stream. Unlike ``resumeAfter``, this can resume notifications after an "invalidate" event. The result of :symbol:`mongoc_change_stream_get_resume_token()` or the ``_id`` field of any change received from a change stream can be used here. This option is mutually exclusive with ``resumeAfter`` and ``startAtOperationTime``.'}),
|
293 | 293 | ('startAtOperationTime', {'type': 'timestamp', 'help': 'A ``Timestamp``. The change stream only provides changes that occurred at or after the specified timestamp. Any command run against the server will return an operation time that can be used here. This option is mutually exclusive with ``resumeAfter`` and ``startAfter``.'}),
|
294 | 294 | ('maxAwaitTimeMS', {'type': 'int64_t', 'convert': '_mongoc_convert_int64_positive', 'help': 'An ``int64`` representing the maximum amount of time a call to :symbol:`mongoc_change_stream_next` will block waiting for data'}),
|
295 |
| - ('fullDocument', {'type': 'utf8', 'help': 'A UTF-8 string. Set this option to "updateLookup" to direct the change stream cursor to lookup the most current majority-committed version of the document associated to an update change stream event.'}), |
| 295 | + ('fullDocument', { |
| 296 | + 'type': 'utf8', |
| 297 | + 'help': 'An optional UTF-8 string. Set this option to "default", ' |
| 298 | + '"updateLookup", "whenAvailable", or "required", If unset, ' |
| 299 | + 'The string "default" is assumed. Set this option to ' |
| 300 | + '"updateLookup" to direct the change stream cursor to ' |
| 301 | + 'lookup the most current majority-committed version of the ' |
| 302 | + 'document associated to an update change stream event.' |
| 303 | + }), |
| 304 | + ('fullDocumentBeforeChange', { |
| 305 | + 'type': 'utf8', |
| 306 | + 'help': 'An optional UTF-8 string. Set this option to ' |
| 307 | + '"whenAvailable", "required", or "off". When unset, the ' |
| 308 | + 'default value is "off". Similar to "fullDocument", but ' |
| 309 | + 'returns the value of the document before the associated ' |
| 310 | + 'change.', |
| 311 | + }), |
296 | 312 | comment_option_string_pre_4_4,
|
297 |
| - ], fullDocument="default")), |
| 313 | + ], fullDocument=None, fullDocumentBeforeChange=None)), |
298 | 314 |
|
299 | 315 | ('mongoc_create_index_opts_t', Struct([
|
300 | 316 | write_concern_option,
|
|
0 commit comments