From eabd2235ba1ebc24c26109b11477f59292f367dd Mon Sep 17 00:00:00 2001 From: Julius Park Date: Tue, 26 Oct 2021 14:24:27 -0700 Subject: [PATCH] PYTHON-2859 Add BSON Binary subtype 7 (#763) --- bson/binary.py | 6 ++++++ doc/api/bson/binary.rst | 1 + 2 files changed, 7 insertions(+) diff --git a/bson/binary.py b/bson/binary.py index dd12f56e2..50cfbd843 100644 --- a/bson/binary.py +++ b/bson/binary.py @@ -169,6 +169,12 @@ MD5_SUBTYPE = 5 """BSON binary subtype for an MD5 hash. """ +COLUMN_SUBTYPE = 7 +"""BSON binary subtype for columns. + +.. versionadded:: 4.0 +""" + USER_DEFINED_SUBTYPE = 128 """BSON binary subtype for any user defined structure. """ diff --git a/doc/api/bson/binary.rst b/doc/api/bson/binary.rst index a754d43d5..b9673d70d 100644 --- a/doc/api/bson/binary.rst +++ b/doc/api/bson/binary.rst @@ -14,6 +14,7 @@ .. autodata:: JAVA_LEGACY .. autodata:: CSHARP_LEGACY .. autodata:: MD5_SUBTYPE + .. autodata:: COLUMN_SUBTYPE .. autodata:: USER_DEFINED_SUBTYPE .. autoclass:: UuidRepresentation