... の要素は式または文字列。2番目の要素は文字列で表現された SQL 演算子です。タイプミスを避けるために、演算子を文字列でマップする RangeOperators を使用できます。たとえば: expressions = [ ( "timespan" , RangeOperators . ADJACENT_TO ), ( F ( "room" ), RangeOperators . ... スタム operator class を指定するために使用できます。たとえば: expressions = [ ( OpClass ( "circle" , name = "circle_ops" ), RangeOperators . OVERLAPS ), ] これは circle_ops を使用して circle 上に排他制約を作成します。 index_type ¶ ExclusionConstraint. index_typ ... E です。例: from django.contrib.postgres.constraints import ExclusionConstraint from django.contrib.postgres.fields import RangeOperators from django.db.models import Deferrable ExclusionConstraint ( name = "exclude_overlapping_deferred" , expressions = [ ( "t ... ... の要素は式または文字列。2番目の要素は文字列で表現された SQL 演算子です。タイプミスを避けるために、演算子を文字列でマップする RangeOperators を使用できます。たとえば: expressions = [ ( "timespan" , RangeOperators . ADJACENT_TO ), ( F ( "room" ), RangeOperators . ... スタム operator class を指定するために使用できます。たとえば: expressions = [ ( OpClass ( "circle" , name = "circle_ops" ), RangeOperators . OVERLAPS ), ] これは circle_ops を使用して circle 上に排他制約を作成します。 index_type ¶ ExclusionConstraint. index_typ ... E です。例: from django.contrib.postgres.constraints import ExclusionConstraint from django.contrib.postgres.fields import RangeOperators from django.db.models import Deferrable ExclusionConstraint ( name = "exclude_overlapping_deferred" , expressions = [ ( "t ... ... 囲フィールドの基底クラス。 base_field ¶ 使用するフォームフィールド。 range_type ¶ 使用する範囲のタイプ。 範囲演算子 ¶ class RangeOperators ¶ PostgreSQL は範囲データ型と共に使用できる SQL 演算子のセットを提供しています (範囲演算子の完全な詳細については the Postg ... reSQL documentation for the full details of range operators を参照してください) 。このクラスはタイプミスを避けるための便利な方法です。演算子名は対応するルックアップの名前と重複します ... 。 class RangeOperators : EQUAL = "=" NOT_EQUAL = "<>" CONTAINS = "@>" CONTAINED_BY = "<@" OVERLAPS = "&&" FULLY_LT = "<<" FULLY_GT = ">>" NOT_LT ... ... ます: ExclusionConstraint ( name = "exclude_overlapping_ops" , expressions = [ ( OpClass ( "circle" , name = "circle_ops" ), RangeOperators . OVERLAPS ), ], ) これは circle_ops を使用して circle 上に排他制約を作成します。 目次 PostgreSQL 固有のモデルインデックス ... ... 囲フィールドの基底クラス。 base_field ¶ 使用するフォームフィールド。 range_type ¶ 使用する範囲のタイプ。 範囲演算子 ¶ class RangeOperators ¶ PostgreSQL は範囲データ型と共に使用できる SQL 演算子のセットを提供しています (範囲演算子の完全な詳細については the Postg ... reSQL documentation for the full details of range operators を参照してください) 。このクラスはタイプミスを避けるための便利な方法です。演算子名は対応するルックアップの名前と重複します ... 。 class RangeOperators : EQUAL = "=" NOT_EQUAL = "<>" CONTAINS = "@>" CONTAINED_BY = "<@" OVERLAPS = "&&" FULLY_LT = "<<" FULLY_GT = ">>" NOT_LT ... ... ます: ExclusionConstraint ( name = "exclude_overlapping_ops" , expressions = [ ( OpClass ( "circle" , name = "circle_ops" ), RangeOperators . OVERLAPS ), ], ) これは circle_ops を使用して circle 上に排他制約を作成します。 目次 PostgreSQL 固有のモデルインデックス ... ... ATH setting now supports pathlib.Path . The GeoIP2 class now accepts pathlib.Path path . django.contrib.postgres ¶ The new RangeOperators helps to avoid typos in SQL operators that can be used together with RangeField . The new RangeBoundary expression represe ... ... ATH setting now supports pathlib.Path . The GeoIP2 class now accepts pathlib.Path path . django.contrib.postgres ¶ The new RangeOperators helps to avoid typos in SQL operators that can be used together with RangeField . The new RangeBoundary expression represe ... ... lidator (django.contrib.postgres.validators のクラス) RangeMinValueValidator (django.contrib.postgres.validators のクラス) RangeOperators (django.contrib.postgres.fields のクラス) RangeWidget (django.contrib.postgres.forms のクラス) Rank (django.db.models.func ... ... lidator (django.contrib.postgres.validators のクラス) RangeMinValueValidator (django.contrib.postgres.validators のクラス) RangeOperators (django.contrib.postgres.fields のクラス) RangeWidget (django.contrib.postgres.forms のクラス) Rank (django.db.models.func ... 2026年10月08日