per page, with , order by , clip by
Results of 1 - 10 of about 76 for expression (0.005 sec.)
データベース関数 14254
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... with other expressions like aggregate functions . See the Func documentation for security considerations. 各関数の例では、以下のモデルを使用しま ... はお勧めしません。なぜなら、これはフィールドに2つの "空の値 "を持たせてしまうからです。 比較および変換関数 Cast class Cast ( expression , output_field ) [ソース] 式 expression の結果の型を output_field の型に強制的に変更します。 使用例: >>> from django.db.mo ... "age" , output_field = FloatField ()), ... ) . get () >>> print ( author . age_as_float ) 25.0 Coalesce class Coalesce ( * expressions , ** extra ) [ソース] 少なくとも2つのフィールド名または式のリストを受け取り、最初のNULLでない値を返します(空文字列はNULL ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
クエリ式 (Query Expression) 12675
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... できる組み込みの式 (expression) は多数あります (以下で説明します)。式を組み合わせたり、場合によっては入れ子にしてより複雑な計算を行うこともできます。 サポ ... ) >>> company . num_employees 120 >>> company . num_chairs 50 >>> company . chairs_needed 70 # Create a new company using expressions. >>> company = Company . objects . create ( name = "Google" , ticker = Upper ( Value ( "goog" ))) >>> company . ticker 'G ... mplex computations also >>> Company . objects . annotate ( num_offerings = Count ( F ( "products" ) + F ( "services" ))) # Expressions can also be used in order_by(), either directly >>> Company . objects . order_by ( Length ( "name" ) . asc ()) >>> Compan ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
地理情報データベース関数 12260
地理情報データベース関数 このページで説明する関数を使えば、Django のアノテーションや集約、フィルタで使う地理情報データベース関数にアクセスできます。 例: >>> from django.contrib.gis.db.models.functions import Length >>> Track . objects . ann ... い。サポートしていないバックエンドで地理情報関数を呼び出すと、 NotImplementedError 例外が発生します。 寸法 Area class Area ( expression , ** extra ) [ソース] Availability : MariaDB, MySQL , Oracle, PostGIS , SpatiaLite 単一の地理情報フィールドまたは式を受け取 ... 距離を返します。 order_by() 節で使用すると、インデックスアシストされた最近傍の結果セットを提供します。 Length class Length ( expression , spheroid = True , ** extra ) [ソース] 利用可能なDB : MariaDB, MySQL , Oracle, PostGIS , SpatiaLite 単一の地理的な linest ... id キーワード引数で指定できます。 MySQLは地理空間SRSにおける長さの計算をサポートしていません。 Perimeter class Perimeter ( expression , ** extra ) [ソース] 利用可能なDB : PostGIS , Oracle, SpatiaLite 単一の地理情報フィールドまたは式を受け取り、ジオメトリフ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/functions.html
Django 1.8.19 リリースノート 9115
Django 1.8.19 リリースノート 2018年3月6日 Django 1.8.19 では、1.18.18 にあった2つのセキュリティの問題を修正しました。 CVE-2018-7536: urlize と urlizetrunc テンプレートフィルタにおける DoS 攻撃の可能性 The django.utils.html.urlize() function ... was extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable. The p ... roblematic regular expression is replaced with parsing logic that behaves similarly. CVE-2018-7537: Denial-of-service possibility in truncatechars_html ... rgument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, whi ...
https://man.mtool.work/django/6.1/releases/1.8.19.html
Django 2.0.3 リリースノート 8575
Django 2.0.3 リリースノート 2018年3月6日 Django 2.0.3 では、2.0.2 にあった2つのセキュリティの問題と、いくつかのバグを修正しました。また、Transifex の最新の翻訳文字列も組み込まれました。 CVE-2018-7536: urlize と urlizetrunc テンプレートフィル ... e() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions. The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable. The ... problematic regular expressions are replaced with parsing logic that behaves similarly. CVE-2018-7537: Denial-of-service possibility in truncatechars_htm ... rgument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, whi ...
https://man.mtool.work/django/6.1/releases/2.0.3.html
PostgreSQL 固有の集計関数 8450
PostgreSQL 固有の集計関数 これらの機能は、 django.contrib.postgres.aggregates モジュールから利用可能です。これらについての詳細は、 PostgreSQLドキュメント に記載されています。 注釈 すべての関数はデフォルトのエイリアスを持たないので、明示的に ... キーワード引数を持ち、ほとんどの集計関数は default キーワード引数も持っています。 汎用的な集計関数 ArrayAgg class ArrayAgg ( expression , distinct = False , filter = None , default = None , order_by = () , ** extra ) null を含む値のリストを配列に連結して返す ... _field" , order_by = "-some_field" ) ArrayAgg ( "a_field" , order_by = F ( "some_field" ) . desc ()) BitAnd class BitAnd ( expression , filter = None , default = None , ** extra ) すべての非 null 入力値のビットごとの AND を返し、すべての値が null の場合は ... す。 バージョン 6.1 で非推奨: This class is deprecated in favor of the generally available BitAnd class. BitOr class BitOr ( expression , filter = None , default = None , ** extra ) すべての非 null 入力値のビットごとの OR の int を返します。すべての値が null ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/aggregates.html
Django 2.0.7 リリースノート 7910
Django 2.0.7 リリースノート 2018年7月2日 Django 2.0.7 では、2.0.6 にあったいくつかのバグを修正しました。 バグ修正 Fixed admin changelist crash when using a query expression without asc() or desc() in the page's ordering ( #29428 ). Fixed ad ... min check crash when using a query expression in ModelAdmin.ordering ( #29428 ). Fixed __regex and __iregex lookups with MySQL 8 ( #29451 ). Fixed migrations crash with ...
https://man.mtool.work/django/6.1/releases/2.0.7.html
全文検索 7854
全文検索 django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの例では、 クエリを作成する で定義されたモデルを使用します。 参考 検索の概要については、 トピッ ... プを使用するには、 INSTALLED_APPS に 'django.contrib.postgres' を含める必要があります。 SearchVector class SearchVector ( * expressions , config = None , weight = None ) [ソース] 単一のフィールドに対する検索は素晴らしいですが、制約があります。検索対象となる ... search = "Cheese" ) <QuerySet [<Entry: Cheese on Toast recipes>, <Entry: Pizza Recipes>]> SearchVector への引数は、任意の Expression またはフィールドの名前を指定できます。複数の引数は、スペースを使用して連結され、検索ドキュメントにすべて含まれます。 Searc ... QLのドキュメントに、 different rank normalization options についての詳細があります。 SearchHeadline class SearchHeadline ( expression , query , config = None , start_sel = None , stop_sel = None , max_words = None , min_words = None , short_word = None , h ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
ルックアップ API リファレンス 7549
ルックアップ API リファレンス このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンスがあります。ルックアップの 使い方 については クエリを作成する を、新しいルックアップの 作り方 ... ブジェクトで、他の式をコンパイルするための compile() メソッドを持っています。 connection はクエリの実行に使用する接続です。 expression.as_sql() の呼び出しは通常正しくありません。 代わりに compiler.compile(expression) を使用する必要があります。 compiler.comp ... 用クラスです。主な例は DateField を IntegerField に変換する __year です。 ルックアップ式で Transform を使用する場合の表記は <expression>__<transformation> (例 date__year ) です。 This class follows the Query Expression API , which implies that you can use <e ... xpression>__<transform1>__<transform2> . It's a specialized Func() expression that only accepts one argument. It can also be used on the right hand side of a filter or directly as an annotation. bilat ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
Django 1.11.11 リリースノート 7549
Django 1.11.11 リリースノート 2018年3月6日 Django 1.11.11 では、1.11.10 にあった2つのセキュリティの問題を修正しました。 CVE-2018-7536: urlize と urlizetrunc テンプレートフィルタにおける DoS 攻撃の可能性 The django.utils.html.urlize() functi ... on was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions. The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable. The ... problematic regular expressions are replaced with parsing logic that behaves similarly. CVE-2018-7537: Denial-of-service possibility in truncatechars_htm ... rgument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, whi ...
https://man.mtool.work/django/6.1/releases/1.11.11.html
PREV 1 2 3 4 5 6 7 8 NEXT