Skip to content

Commit eabd223

Browse files
authored
PYTHON-2859 Add BSON Binary subtype 7 (mongodb#763)
1 parent 468427d commit eabd223

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bson/binary.py

+6
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ class UuidRepresentation:
169169
"""BSON binary subtype for an MD5 hash.
170170
"""
171171

172+
COLUMN_SUBTYPE = 7
173+
"""BSON binary subtype for columns.
174+
175+
.. versionadded:: 4.0
176+
"""
177+
172178
USER_DEFINED_SUBTYPE = 128
173179
"""BSON binary subtype for any user defined structure.
174180
"""

doc/api/bson/binary.rst

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.. autodata:: JAVA_LEGACY
1515
.. autodata:: CSHARP_LEGACY
1616
.. autodata:: MD5_SUBTYPE
17+
.. autodata:: COLUMN_SUBTYPE
1718
.. autodata:: USER_DEFINED_SUBTYPE
1819

1920
.. autoclass:: UuidRepresentation

0 commit comments

Comments
 (0)