per page, with , order by , clip by
Results of 1 - 10 of about 72 for transaction (0.005 sec.)
データベースのトランザクション — Django 6.1 ドキュメント 14281
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのトランザクション ¶ Django では、データベースのトランザクションをコントロールする方法が提供されています。 データベースのトランザクション ... sing = None ) [ソース] ¶ このデコレータは、与えられたビューのために ATOMIC_REQUESTS を無効化します。 from django.db import transaction @transaction . non_atomic_requests def my_view ( request ): do_stuff () @transaction . non_atomic_requests ( using = "othe ... ックの中に入れ子になっている場合、 RuntimeError が発生します。 atomic is usable both as a decorator : from django.db import transaction @transaction . atomic def viewfunc ( request ): # This code executes inside a transaction. do_stuff () and as a context ma ... nager : from django.db import transaction def viewfunc ( request ): # This code executes in autocommit mode (Django's default). do_stuff () with transaction . atomi ...
https://man.mtool.work/django/6.1/topics/db/transactions.html
データベースのトランザクション — Django 6.1 ドキュメント 14281
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースのトランザクション ¶ Django では、データベースのトランザクションをコントロールする方法が提供されています。 データベースのトランザクション ... sing = None ) [ソース] ¶ このデコレータは、与えられたビューのために ATOMIC_REQUESTS を無効化します。 from django.db import transaction @transaction . non_atomic_requests def my_view ( request ): do_stuff () @transaction . non_atomic_requests ( using = "othe ... ックの中に入れ子になっている場合、 RuntimeError が発生します。 atomic is usable both as a decorator : from django.db import transaction @transaction . atomic def viewfunc ( request ): # This code executes inside a transaction. do_stuff () and as a context ma ... nager : from django.db import transaction def viewfunc ( request ): # This code executes in autocommit mode (Django's default). do_stuff () with transaction . atomi ...
https://man.mtool.work/django/6.1/topics/db/transactions.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 8997
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 ... faults to SQLite. If the default templates don't suit your tastes, you can use custom project and app templates . Improved transaction management ¶ Django's transaction management was overhauled. Database-level autocommit is now turned on by default. This m ... akes transaction handling more explicit and should improve performance. The existing APIs were deprecated, and new APIs were introduced, as ... described in the transaction management docs . Persistent database connections ¶ Django now supports reusing the same database connection for several r ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.6 リリースノート — Django 6.1 ドキュメント 8787
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 ... faults to SQLite. If the default templates don't suit your tastes, you can use custom project and app templates . Improved transaction management ¶ Django's transaction management was overhauled. Database-level autocommit is now turned on by default. This m ... akes transaction handling more explicit and should improve performance. The existing APIs were deprecated, and new APIs were introduced, as ... described in the transaction management docs . Persistent database connections ¶ Django now supports reusing the same database connection for several r ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.3 リリースノート — Django 6.1 ドキュメント 8661
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.3 リリースノート ¶ March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plen ... u want to continue to use the base unittest library, you can -- you just won't get any of the nice new unittest2 features. Transaction context managers ¶ Users of Python 2.5 and above may now use transaction management functions as context managers. For exa ... mple: with transaction . autocommit (): ... Configurable delete-cascade ¶ ForeignKey and OneToOneField now accept an on_delete argument to custom ... also delete the file from the backend storage. This opened the door to several data-loss scenarios, including rolled-back transactions and fields on different models referencing the same file. In Django 1.3, when a model is deleted the FileField 's delete( ...
https://man.mtool.work/django/6.1/releases/1.3.html
Django 1.3 リリースノート — Django 6.1 ドキュメント 8661
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.3 リリースノート ¶ March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plen ... u want to continue to use the base unittest library, you can -- you just won't get any of the nice new unittest2 features. Transaction context managers ¶ Users of Python 2.5 and above may now use transaction management functions as context managers. For exa ... mple: with transaction . autocommit (): ... Configurable delete-cascade ¶ ForeignKey and OneToOneField now accept an on_delete argument to custom ... also delete the file from the backend storage. This opened the door to several data-loss scenarios, including rolled-back transactions and fields on different models referencing the same file. In Django 1.3, when a model is deleted the FileField 's delete( ...
https://man.mtool.work/django/6.1/releases/1.3.html
PostgreSQL 固有のデータベース関数 — Django 6.1 ドキュメント 8058
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース関数 ¶ これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID ¶ class RandomUUI ... django.db.models.functions.UUID4 is a cross-database version of this function. RandomUUID may be deprecated in the future. TransactionNow ¶ class TransactionNow [ソース] ¶ 現在のトランザクションが開始されたデータベースサーバー上の日時を返します。トランザクシ ... tions.Now を補完するもので、現在のステートメントの日時を返します。 Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls create savepoints which do not affect the transacti ... on time. 使用例: >>> from django.contrib.postgres.functions import TransactionNow >>> Article . objects . filter ( published__lte = TransactionNow ()) <QuerySet [<Article: How to Django>]> 目次 Postgre ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
PostgreSQL 固有のデータベース関数 — Django 6.1 ドキュメント 8002
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » PostgreSQL 固有のデータベース関数 ¶ これらの関数はすべて django.contrib.postgres.functions モジュールから利用できます。 RandomUUID ¶ class RandomUUI ... django.db.models.functions.UUID4 is a cross-database version of this function. RandomUUID may be deprecated in the future. TransactionNow ¶ class TransactionNow [ソース] ¶ 現在のトランザクションが開始されたデータベースサーバー上の日時を返します。トランザクシ ... tions.Now を補完するもので、現在のステートメントの日時を返します。 Note that only the outermost call to atomic() sets up a transaction and thus sets the time that TransactionNow() will return; nested calls create savepoints which do not affect the transacti ... on time. 使用例: >>> from django.contrib.postgres.functions import TransactionNow >>> Article . objects . filter ( published__lte = TransactionNow ()) <QuerySet [<Article: How to Django>]> 目次 Postgre ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/functions.html
Django's Tasks framework — Django 6.1 ドキュメント 7932
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... ランザクション ¶ For most backends, Tasks are run in a separate process, using a different database connection. When using a transaction, without waiting for it to commit, workers could start to process a Task which uses objects it can't access yet. For examp ... le, consider this simplified example: @task def my_task ( thing_num ): Thing . objects . get ( num = thing_num ) with transaction . atomic (): Thing . objects . create ( num = 1 ) my_task . enqueue ( thing_num = 1 ) To prevent the scenario where my_tas ... k runs before the Thing is committed to the database, use transaction.on_commit() , binding all arguments to enqueue() via functools.partial() : from functools import partial from django.db im ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django's Tasks framework — Django 6.1 ドキュメント 7932
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... ランザクション ¶ For most backends, Tasks are run in a separate process, using a different database connection. When using a transaction, without waiting for it to commit, workers could start to process a Task which uses objects it can't access yet. For examp ... le, consider this simplified example: @task def my_task ( thing_num ): Thing . objects . get ( num = thing_num ) with transaction . atomic (): Thing . objects . create ( num = 1 ) my_task . enqueue ( thing_num = 1 ) To prevent the scenario where my_tas ... k runs before the Thing is committed to the database, use transaction.on_commit() , binding all arguments to enqueue() via functools.partial() : from functools import partial from django.db im ...
https://man.mtool.work/django/6.1/topics/tasks.html
PREV 1 2 3 4 5 6 7 8 NEXT