Skip to content

Commit 74f2269

Browse files
authored
docs: update docs to show decimal field support and check constraints but no support for unsigned data type (#683)
1 parent 42352c0 commit 74f2269

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

README.rst

+8-15
Original file line numberDiff line numberDiff line change
@@ -283,23 +283,16 @@ were created.
283283
Spanner does not support ``ON DELETE CASCADE`` when creating foreign-key
284284
constraints, so this is not supported in ``django-google-spanner``.
285285

286-
Check constraints aren't supported
287-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
286+
``Unsigned`` datatypes are not supported
287+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288288

289-
Spanner does not support ``CHECK`` constraints so one isn't created for
290-
`PositiveIntegerField
289+
Spanner does not support ``Unsigned`` datatypes so `PositiveIntegerField
291290
<https://docs.djangoproject.com/en/stable/ref/models/fields/#positiveintegerfield>`__
292-
and `CheckConstraint
293-
<https://docs.djangoproject.com/en/stable/ref/models/constraints/#checkconstraint>`__
294-
can't be used.
295-
296-
No native support for ``DecimalField``
297-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
298-
299-
Spanner's support for `Decimal <https://www.python.org/dev/peps/pep-0327/>`__
300-
types is limited to
301-
`NUMERIC <https://cloud.google.com/spanner/docs/data-types#numeric_types>`__
302-
precision. Higher-precision values can be stored as strings instead.
291+
and `PositiveSmallIntegerField
292+
<https://docs.djangoproject.com/en/3.2/ref/models/fields/#positivesmallintegerfield>`__
293+
are both stored as `Integer type
294+
<https://cloud.google.com/spanner/docs/data-types#integer_type>`__
295+
.
303296

304297
``Meta.order_with_respect_to`` model option isn't supported
305298
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)