diff options
author | Jens Tröger <jenstroeger@users.noreply.github.com> | 2023-04-07 06:55:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 22:55:33 +0200 |
commit | 9bbb70ffd559c1a9e085fb379a5be4b06da0cd7c (patch) | |
tree | 720ef958b2f0957d22ee078b0d190c2cb3672524 /lib/sqlalchemy/dialects/postgresql | |
parent | 95f531df8d88b4a32e96ec2914517ac3712e4f43 (diff) | |
download | sqlalchemy-9bbb70ffd559c1a9e085fb379a5be4b06da0cd7c.tar.gz |
Fix typos in PostgreSQL dialect’s DOMAIN docs (#9601)
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/named_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/named_types.py b/lib/sqlalchemy/dialects/postgresql/named_types.py index d09f8a25b..e2a683e18 100644 --- a/lib/sqlalchemy/dialects/postgresql/named_types.py +++ b/lib/sqlalchemy/dialects/postgresql/named_types.py @@ -374,11 +374,11 @@ class DOMAIN(NamedType, sqltypes.SchemaType): A domain is essentially a data type with optional constraints that restrict the allowed set of values. E.g.:: - PositiveInt = Domain( + PositiveInt = DOMAIN( "pos_int", Integer, check="VALUE > 0", not_null=True ) - UsPostalCode = Domain( + UsPostalCode = DOMAIN( "us_postal_code", Text, check="VALUE ~ '^\d{5}$' OR VALUE ~ '^\d{5}-\d{4}$'" |