@@ -69,6 +69,8 @@ class UuidRepresentation:
69
69
code. When decoding a BSON binary field with a UUID subtype, a
70
70
:class:`~bson.binary.Binary` instance will be returned instead of a
71
71
:class:`uuid.UUID` instance.
72
+
73
+ See :ref:`unspecified-representation-details` for details.
72
74
73
75
.. versionadded:: 3.11
74
76
"""
@@ -79,6 +81,8 @@ class UuidRepresentation:
79
81
:class:`uuid.UUID` instances will automatically be encoded to
80
82
and decoded from BSON binary, using RFC-4122 byte order with
81
83
binary subtype :data:`UUID_SUBTYPE`.
84
+
85
+ See :ref:`standard-representation-details` for details.
82
86
83
87
.. versionadded:: 3.11
84
88
"""
@@ -89,6 +93,8 @@ class UuidRepresentation:
89
93
:class:`uuid.UUID` instances will automatically be encoded to
90
94
and decoded from BSON binary, using RFC-4122 byte order with
91
95
binary subtype :data:`OLD_UUID_SUBTYPE`.
96
+
97
+ See :ref:`python-legacy-representation-details` for details.
92
98
93
99
.. versionadded:: 3.11
94
100
"""
@@ -99,6 +105,8 @@ class UuidRepresentation:
99
105
:class:`uuid.UUID` instances will automatically be encoded to
100
106
and decoded from BSON binary subtype :data:`OLD_UUID_SUBTYPE`,
101
107
using the Java driver's legacy byte order.
108
+
109
+ See :ref:`java-legacy-representation-details` for details.
102
110
103
111
.. versionadded:: 3.11
104
112
"""
@@ -109,6 +117,8 @@ class UuidRepresentation:
109
117
:class:`uuid.UUID` instances will automatically be encoded to
110
118
and decoded from BSON binary subtype :data:`OLD_UUID_SUBTYPE`,
111
119
using the C# driver's legacy byte order.
120
+
121
+ See :ref:`csharp-legacy-representation-details` for details.
112
122
113
123
.. versionadded:: 3.11
114
124
"""
@@ -220,6 +230,7 @@ def from_uuid(cls, uuid, uuid_representation=UuidRepresentation.STANDARD):
220
230
- `uuid_representation`: A member of
221
231
:class:`~bson.binary.UuidRepresentation`. Default:
222
232
:const:`~bson.binary.UuidRepresentation.STANDARD`.
233
+ See :ref:`handling-uuid-data-example` for details.
223
234
224
235
.. versionadded:: 3.11
225
236
"""
@@ -236,7 +247,8 @@ def from_uuid(cls, uuid, uuid_representation=UuidRepresentation.STANDARD):
236
247
"UuidRepresentation.UNSPECIFIED. UUIDs can be manually "
237
248
"converted to bson.Binary instances using "
238
249
"bson.Binary.from_uuid() or a different UuidRepresentation "
239
- "can be configured." )
250
+ "can be configured. See the documentation for "
251
+ "UuidRepresentation for more information." )
240
252
241
253
subtype = OLD_UUID_SUBTYPE
242
254
if uuid_representation == UuidRepresentation .PYTHON_LEGACY :
@@ -266,6 +278,7 @@ def as_uuid(self, uuid_representation=UuidRepresentation.STANDARD):
266
278
- `uuid_representation`: A member of
267
279
:class:`~bson.binary.UuidRepresentation`. Default:
268
280
:const:`~bson.binary.UuidRepresentation.STANDARD`.
281
+ See :ref:`handling-uuid-data-example` for details.
269
282
270
283
.. versionadded:: 3.11
271
284
"""
0 commit comments