per page, with , order by , clip by
Results of 1 - 10 of about 78 for execute (0.009 sec.)
データベースの計測 — Django 6.1 ドキュメント 14036
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースの計測 ¶ コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするため ... def my_view ( request ): context = { ... } # Code to generate context with all data. template_name = ... with connection . execute_wrapper ( blocker ): return render ( request , template_name , context ) ラッパーに送られるパラメーターは以下の通りです: e ... ースに送信する SQL クエリの str 。 params -- SQL コマンドのパラメータ値のリストまたはタプル、または、ラップされた呼び出しが executemany() の場合はリストまたはタプルのリストまたはタプル。 many -- 最終的に呼び出すのが execute() なのか executemany() なのかを ... 、次のように、もう少し複雑なバージョンのブロッカーで、エラーメッセージにコネクション名を含めることができます。 def blocker ( execute , sql , params , many , context ): alias = context [ "connection" ] . alias raise Exception ( "Access to database ' {} ' b ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
データベースの計測 — Django 6.1 ドキュメント 13926
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースの計測 ¶ コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするため ... def my_view ( request ): context = { ... } # Code to generate context with all data. template_name = ... with connection . execute_wrapper ( blocker ): return render ( request , template_name , context ) ラッパーに送られるパラメーターは以下の通りです: e ... ースに送信する SQL クエリの str 。 params -- SQL コマンドのパラメータ値のリストまたはタプル、または、ラップされた呼び出しが executemany() の場合はリストまたはタプルのリストまたはタプル。 many -- 最終的に呼び出すのが execute() なのか executemany() なのかを ... 、次のように、もう少し複雑なバージョンのブロッカーで、エラーメッセージにコネクション名を含めることができます。 def blocker ( execute , sql , params , many , context ): alias = context [ "connection" ] . alias raise Exception ( "Access to database ' {} ' b ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
素の SQL 文の実行 — Django 6.1 ドキュメント 10510
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 素の SQL 文の実行 ¶ Django gives you three ways of performing raw SQL queries: you can embed raw SQL fragments into ORM queries using RawSQL (see Ra ... L fragments ), use Manager.raw() to perform raw queries and return model instances , or avoid the model layer entirely and execute custom SQL directly . 素のSQLを使う前にORMを調べましょう! Django ORM は、素の SQL を書かずにクエリを表現するための多くのツ ... ースコネクションを利用するには、カーソルオブジェクトを取得するため connection.cursor() を呼び出してください。そして、 cursor.execute(sql, [params]) を呼び出して SQL を実行した後、 cursor.fetchone() もしくは cursor.fetchall() が結果の行を返します。 例: fro ... m django.db import connection def my_custom_sql ( self ): with connection . cursor () as cursor : cursor . execute ( "UPDATE bar SET foo = 1 WHERE baz = %s " , [ self . baz ]) cursor . execute ( "SELECT foo FROM bar WHERE baz = %s " , [ ...
https://man.mtool.work/django/6.1/topics/db/sql.html
素の SQL 文の実行 — Django 6.1 ドキュメント 10510
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 素の SQL 文の実行 ¶ Django gives you three ways of performing raw SQL queries: you can embed raw SQL fragments into ORM queries using RawSQL (see Ra ... L fragments ), use Manager.raw() to perform raw queries and return model instances , or avoid the model layer entirely and execute custom SQL directly . 素のSQLを使う前にORMを調べましょう! Django ORM は、素の SQL を書かずにクエリを表現するための多くのツ ... ースコネクションを利用するには、カーソルオブジェクトを取得するため connection.cursor() を呼び出してください。そして、 cursor.execute(sql, [params]) を呼び出して SQL を実行した後、 cursor.fetchone() もしくは cursor.fetchall() が結果の行を返します。 例: fro ... m django.db import connection def my_custom_sql ( self ): with connection . cursor () as cursor : cursor . execute ( "UPDATE bar SET foo = 1 WHERE baz = %s " , [ self . baz ]) cursor . execute ( "SELECT foo FROM bar WHERE baz = %s " , [ ...
https://man.mtool.work/django/6.1/topics/db/sql.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 7989
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.6 リリースノート ¶ 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very d ... ch returns FormMixin.prefix by default) to allow customizing the prefix of the form. Raw queries ( Manager.raw() or cursor.execute() ) can now use the "pyformat" parameter style, where placeholders in the query are given as '%(name)s' and the parameters ... e an exception on Oracle. You will need to change the column type in your database to benefit from this change. For MySQL, execute this query on your project's database: ALTER TABLE django_comments MODIFY ip_address VARCHAR ( 39 ); For Oracle, execute t ... le, an exception is generated. No database change is needed for SQLite or PostgreSQL databases. Percent literals in cursor.execute queries ¶ When you are running raw SQL queries through the cursor.execute method, the rule about doubling percent literals ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 7989
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.6 リリースノート ¶ 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very d ... ch returns FormMixin.prefix by default) to allow customizing the prefix of the form. Raw queries ( Manager.raw() or cursor.execute() ) can now use the "pyformat" parameter style, where placeholders in the query are given as '%(name)s' and the parameters ... e an exception on Oracle. You will need to change the column type in your database to benefit from this change. For MySQL, execute this query on your project's database: ALTER TABLE django_comments MODIFY ip_address VARCHAR ( 39 ); For Oracle, execute t ... le, an exception is generated. No database change is needed for SQLite or PostgreSQL databases. Percent literals in cursor.execute queries ¶ When you are running raw SQL queries through the cursor.execute method, the rule about doubling percent literals ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.4 リリースノート — Django 6.1 ドキュメント 7892
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4 リリースノート ¶ March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatibl ... os . environ . setdefault ( "DJANGO_SETTINGS_MODULE" , "{{ project_name }}.settings" ) from django.core.management import execute_from_command_line execute_from_command_line ( sys . argv ) {{ project_name }} should be replaced with the Python package n ... setting the DJANGO_SETTINGS_MODULE environment variable or using django.conf.settings.configure() . django.core.management.execute_manager ¶ This function was previously used by manage.py to execute a management command. It is identical to django.core.m ... anagement.execute_from_command_line , except that it first calls setup_environ , which is now deprecated. As such, execute_manager is also d ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 1.4 リリースノート — Django 6.1 ドキュメント 7892
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4 リリースノート ¶ March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatibl ... os . environ . setdefault ( "DJANGO_SETTINGS_MODULE" , "{{ project_name }}.settings" ) from django.core.management import execute_from_command_line execute_from_command_line ( sys . argv ) {{ project_name }} should be replaced with the Python package n ... setting the DJANGO_SETTINGS_MODULE environment variable or using django.conf.settings.configure() . django.core.management.execute_manager ¶ This function was previously used by manage.py to execute a management command. It is identical to django.core.m ... anagement.execute_from_command_line , except that it first calls setup_environ , which is now deprecated. As such, execute_manager is also d ...
https://man.mtool.work/django/6.1/releases/1.4.html
SchemaEditor — Django 6.1 ドキュメント 7397
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » SchemaEditor ¶ class BaseDatabaseSchemaEditor [ソース] ¶ Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような ... である限り、組み込みの Django SchemaEditor クラスの一つをサブクラス化して、文法を少し変更するだけで済むはずです。 メソッド ¶ execute() ¶ BaseDatabaseSchemaEditor. execute ( sql , params = () ) [ソース] ¶ 渡されたSQL文を実行し、パラメータが指定されている場 ... 特に、この属性は、 複数のデータベースに対するマイグレーション を行っているときに役に立ちます。 目次 SchemaEditor メソッド execute() create_model() delete_model() add_index() remove_index() rename_index() add_constraint() remove_constraint() alter_uniqu ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
SchemaEditor — Django 6.1 ドキュメント 7397
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » SchemaEditor ¶ class BaseDatabaseSchemaEditor [ソース] ¶ Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような ... である限り、組み込みの Django SchemaEditor クラスの一つをサブクラス化して、文法を少し変更するだけで済むはずです。 メソッド ¶ execute() ¶ BaseDatabaseSchemaEditor. execute ( sql , params = () ) [ソース] ¶ 渡されたSQL文を実行し、パラメータが指定されている場 ... 特に、この属性は、 複数のデータベースに対するマイグレーション を行っているときに役に立ちます。 目次 SchemaEditor メソッド execute() create_model() delete_model() add_index() remove_index() rename_index() add_constraint() remove_constraint() alter_uniqu ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
PREV 1 2 3 4 5 6 7 8 NEXT