per page, with , order by , clip by
Results of 1 - 2 of about 2 for cancelled (0.001 sec.)
PostgreSQL 固有のデータベース制約 — Django 6.1 ドキュメント 11228
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース制約 ¶ PostgreSQL は django.contrib.postgres.constraints モジュールから利用できる追加のデータ整合性制約をサポートしてい ... . condition ¶ ExclusionConstraint. condition ¶ 行の一部に制約をかける条件を指定する Q オブジェクト。たとえば、 condition=Q(cancelled=False) 。 これらの条件は、 django.db.models.Index.condition と同じデータベースの制約事項を持ちます。 deferrable ¶ Exclusio ... ( models . Model ): room = models . ForeignKey ( "Room" , on_delete = models . CASCADE ) timespan = DateTimeRangeField () cancelled = models . BooleanField ( default = False ) class Meta : constraints = [ ExclusionConstraint ( name = "exclude_overlapping ... ons" , expressions = [ ( "timespan" , RangeOperators . OVERLAPS ), ( "room" , RangeOperators . EQUAL ), ], condition = Q ( cancelled = False ), ), ] モデルが2つのフィールドを使用して範囲を定義する場合、PostgreSQLのネイティブな範囲型ではなく、同等の関数 (例 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/constraints.html
PostgreSQL 固有のデータベース制約 — Django 6.1 ドキュメント 7485
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース制約 ¶ PostgreSQL は django.contrib.postgres.constraints モジュールから利用できる追加のデータ整合性制約をサポートしてい ... . condition ¶ ExclusionConstraint. condition ¶ 行の一部に制約をかける条件を指定する Q オブジェクト。たとえば、 condition=Q(cancelled=False) 。 これらの条件は、 django.db.models.Index.condition と同じデータベースの制約事項を持ちます。 deferrable ¶ Exclusio ... ( models . Model ): room = models . ForeignKey ( "Room" , on_delete = models . CASCADE ) timespan = DateTimeRangeField () cancelled = models . BooleanField ( default = False ) class Meta : constraints = [ ExclusionConstraint ( name = "exclude_overlapping ... ons" , expressions = [ ( "timespan" , RangeOperators . OVERLAPS ), ( "room" , RangeOperators . EQUAL ), ], condition = Q ( cancelled = False ), ), ] モデルが2つのフィールドを使用して範囲を定義する場合、PostgreSQLのネイティブな範囲型ではなく、同等の関数 (例 ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/constraints.html
PREV 1 NEXT