per page, with , order by , clip by
Results of 1 - 10 of about 36 for cursor (0.007 sec.)
素の SQL 文の実行 — Django 6.1 ドキュメント 14406
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 ... のデータベースコネクションを表します。データベースコネクションを利用するには、カーソルオブジェクトを取得するため connection.cursor() を呼び出してください。そして、 cursor.execute(sql, [params]) を呼び出して SQL を実行した後、 cursor.fetchone() もしくは ... ursor.fetchall() が結果の行を返します。 例: from 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 fo ... o FROM bar WHERE baz = %s " , [ self . baz ]) row = cursor . fetchone () return row SQLインジェクションから保護するために、SQL文字列の %s プレースホルダの前後に引用符を含めてはいけま ...
https://man.mtool.work/django/6.1/topics/db/sql.html
素の SQL 文の実行 — Django 6.1 ドキュメント 14343
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 ... のデータベースコネクションを表します。データベースコネクションを利用するには、カーソルオブジェクトを取得するため connection.cursor() を呼び出してください。そして、 cursor.execute(sql, [params]) を呼び出して SQL を実行した後、 cursor.fetchone() もしくは ... ursor.fetchall() が結果の行を返します。 例: from 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 fo ... o FROM bar WHERE baz = %s " , [ self . baz ]) row = cursor . fetchone () return row SQLインジェクションから保護するために、SQL文字列の %s プレースホルダの前後に引用符を含めてはいけま ...
https://man.mtool.work/django/6.1/topics/db/sql.html
Django 1.11.1 リリースノート — Django 6.1 ドキュメント 8098
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.11.1 リリースノート ¶ May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors ... on PostgreSQL ¶ The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on PostgreSQL prevents running Django with PgBouncer in transaction pooling mode. To reallow that, use the DISABLE_SERVER ... _SIDE_CURSORS setting in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. バグ修正 ¶ Made migrations ... #28059 ). Fixed crash in BaseGeometryWidget.subwidgets() ( #28039 ). Fixed exception reraising in ORM query execution when cursor.execute() fails and the subsequent cursor.close() also fails ( #28091 ). Fixed a regression where CheckboxSelectMultiple , ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 8098
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 ... ix (which 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 pa ... on Oracle, 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 ... ral percent characters if you are also providing replacement parameters. For example: # No parameters, no percent doubling cursor . execute ( "SELECT foo FROM bar WHERE baz = '30%'" ) # Parameters passed, non-placeholders have to be doubled cursor . ex ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.11.1 リリースノート — Django 6.1 ドキュメント 8098
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.11.1 リリースノート ¶ May 6, 2017 Django 1.11.1 adds a minor feature and fixes several bugs in 1.11. Allowed disabling server-side cursors ... on PostgreSQL ¶ The change in Django 1.11 to make QuerySet.iterator() use server-side cursors on PostgreSQL prevents running Django with PgBouncer in transaction pooling mode. To reallow that, use the DISABLE_SERVER ... _SIDE_CURSORS setting in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. バグ修正 ¶ Made migrations ... #28059 ). Fixed crash in BaseGeometryWidget.subwidgets() ( #28039 ). Fixed exception reraising in ORM query execution when cursor.execute() fails and the subsequent cursor.close() also fails ( #28091 ). Fixed a regression where CheckboxSelectMultiple , ...
https://man.mtool.work/django/6.1/releases/1.11.1.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 8098
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 ... ix (which 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 pa ... on Oracle, 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 ... ral percent characters if you are also providing replacement parameters. For example: # No parameters, no percent doubling cursor . execute ( "SELECT foo FROM bar WHERE baz = '30%'" ) # Parameters passed, non-placeholders have to be doubled cursor . ex ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 3.1 リリースノート — Django 6.1 ドキュメント 7750
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.1 リリースノート ¶ August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレ ... it was None on databases that support time zones. connection._nodb_connection property is changed to the connection._nodb_cursor() method and now returns a context manager that yields a cursor and automatically closes the cursor and connection upon ex ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 3.1 リリースノート — Django 6.1 ドキュメント 7750
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.1 リリースノート ¶ August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレ ... it was None on databases that support time zones. connection._nodb_connection property is changed to the connection._nodb_cursor() method and now returns a context manager that yields a cursor and automatically closes the cursor and connection upon ex ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 7686
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... ser and server time zone are different, to clarify how the value inserted in the field will be interpreted. Using database cursors as context managers ¶ Prior to Python 2.7, database cursors could be used as a context manager. The specific backend's cu ... rsor defined the behavior of the context manager. The behavior of magic method lookups was changed with Python 2.7 and cursors were no longer usable as context managers. Django 1.7 allows a cursor to be used as a context manager. That is, the follo ... wing can be used: with connection . cursor () as c : c . execute ( ... ) 代わりに、次のようにします: c = connection . cursor () try : c . execute ( ... ) finally : c ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.7 リリースノート — Django 6.1 ドキュメント 7686
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.7 リリースノート ¶ September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグ ... ser and server time zone are different, to clarify how the value inserted in the field will be interpreted. Using database cursors as context managers ¶ Prior to Python 2.7, database cursors could be used as a context manager. The specific backend's cu ... rsor defined the behavior of the context manager. The behavior of magic method lookups was changed with Python 2.7 and cursors were no longer usable as context managers. Django 1.7 allows a cursor to be used as a context manager. That is, the follo ... wing can be used: with connection . cursor () as c : c . execute ( ... ) 代わりに、次のようにします: c = connection . cursor () try : c . execute ( ... ) finally : c ...
https://man.mtool.work/django/6.1/releases/1.7.html
PREV 1 2 3 4 NEXT