per page, with , order by , clip by
Results of 1 - 9 of about 9 for compiler (0.013 sec.)
ルックアップ API リファレンス 12708
ルックアップ API リファレンス このドキュメントには、データベースクエリの WHERE 句を構築するための Django API であるルックアップの API リファレンスがあります。ルックアップの 使い方 については クエリを作成する を、新しいルックアップの 作り方 ... はこのAPIに従う例です。あるクラスが以下のメソッドを実装している場合、そのクラスはクエリ式APIに従っていると言えます: as_sql ( compiler , connection ) 式の SQL フラグメントを生成します。タプル (sql, params) を返します。 sql は SQL 文字列で、 params はクエリパ ... ラメータのリストまたはタプルです。 compiler は SQLCompiler オブジェクトで、他の式をコンパイルするための compile() メソッドを持っています。 connection はクエリの実行に ... 使用する接続です。 expression.as_sql() の呼び出しは通常正しくありません。 代わりに compiler.compile(expression) を使用する必要があります。 compiler.compile() メソッドは式のベンダ固有のメソッドの呼び出しを行います。 ...
https://man.mtool.work/django/6.1/ref/models/lookups.html
カスタムのルックアップを書く 11575
カスタムのルックアップを書く Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。このドキュメントでは、カスタムルックアップを作る方法や、既存のルックアップの動作を変更する方法につ ... させる必要があります。 from django.db.models import Lookup class NotEqual ( Lookup ): lookup_name = "ne" def as_sql ( self , compiler , connection ): lhs , lhs_params = self . process_lhs ( compiler , connection ) rhs , rhs_params = self . process_rhs ( co ... ならない制約は、文字列 __ を決して含んではならないということです。 We then need to define the as_sql method. This takes a SQLCompiler object, called compiler , and the active database connection. SQLCompiler objects are not documented, but the only thing w ... では、左辺は Author モデルの name フィールドへの参照で、右辺は 'Jack' です。 process_lhs と process_rhs を呼び出して、前述の compiler オブジェクトを使用してSQLに必要な値に変換します。これらのメソッドは、SQL とその SQL に補間されるパラメーターを含むタプルを ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
クエリ式 (Query Expression) 9400
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... 。この属性が設定されていて、関数が異なる数の式で呼び出された場合、 TypeError が発生します。デフォルトは None です。 as_sql ( compiler , connection , function = None , template = None , arg_joiner = None , ** extra_context ) [ソース] データベース関数の SQL ... べきです。例えば: django/db/models/functions.py class ConcatPair ( Func ): ... function = "CONCAT" ... def as_mysql ( self , compiler , connection , ** extra_context ): return super () . as_sql ( compiler , connection , function = "CONCAT_WS" , template = ... ( query , allow_joins , reuse , summarize , for_save ) return c 次に、SQLを生成するメソッドを書きます: def as_sql ( self , compiler , connection , template = None ): sql_expressions , sql_params = [], [] for expression in self . expressions : sql , param ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
Django 6.1 release notes 8268
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... igns_in_column_aliases feature flag is removed. The DatabaseOperations.binary_placeholder_sql() method now expects a query compiler as an extra positional argument and should return a two-elements tuple composed of an SQL format string and a tuple of ass ... e of associated parameters. This method should now expect to be provided expressions meant to be compiled via the provided compiler argument. The quote_name_unless_alias() method of SQLCompiler , the type of object passed as the compiler argument to the ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 1.8 リリースノート 8160
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... suffix , and data_type_check_constraints attributes have moved from the DatabaseCreation class to DatabaseWrapper . The SQLCompiler.as_sql() method now takes a subquery parameter ( #24164 ). The BaseDatabaseOperations.date_interval_sql() method now only ... erride either method. Support for storages that do not accept this argument will be removed in Django 1.10. qn replaced by compiler In previous Django versions, various internal ORM methods (mostly as_sql methods) accepted a qn (for "quote name") argumen ... erence to a function that quoted identifiers for sending to the database. In Django 1.8, that argument has been renamed to compiler and is now a full SQLCompiler instance. For backwards-compatibility, calling a SQLCompiler instance performs the same name ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 1.10 リリースノート 7927
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... 換えてください。 from django.db import models class Search ( models . Lookup ): lookup_name = "search" def as_mysql ( self , compiler , connection ): lhs , lhs_params = self . process_lhs ( compiler , connection ) rhs , rhs_params = self . process_rhs ( co ... .8 を見てください。ここには、プロジェクトからこれらの機能を削除する方法についても書かれています。 Support for calling a SQLCompiler directly as an alias for calling its quote_name_unless_alias method is removed. The cycle and firstof template tags are re ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.6.3 リリースノート 7819
Django 1.6.3 リリースノート April 21, 2014 Django 1.6.3 fixes several bugs in 1.6.2, including three security issues, and makes one backwards-incompatible change: Unexpected code execution using reverse() Django's URL handling is based on a ... ll cannot guarantee an HTML-safe result, as stated in the documentation). Fixed a regression in the django.contrib.gis SQL compiler for non-concrete fields ( #22250 ). Fixed ModelAdmin.preserve_filters when running a site with a URL prefix ( #21795 ). Fi ...
https://man.mtool.work/django/6.1/releases/1.6.3.html
Django 4.1 リリースノート 7477
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... derlying database operations remain synchronous, with contributions ongoing to push asynchronous support down into the SQL compiler, and integrate asynchronous database drivers. The new asynchronous queryset interface currently encapsulates the necessary ...
https://man.mtool.work/django/6.1/releases/4.1.html
Django 6.0 release notes 7477
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... bility problems that resulted, the second return element of the as_sql() method should now be a tuple: def as_sql ( self , compiler , connection ) -> tuple [ str , tuple ]: ... If your custom expressions support multiple versions of Django, you should ad ...
https://man.mtool.work/django/6.1/releases/6.0.html
PREV 1 NEXT