peewee Documentation Release 2.10.2
using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction that you use atomic(). Explicit Savepoints Just as you can explicitly create transactions, you can also explicitly create savepoints using the savepoint() method. Savepoints must occur within a transaction0 码力 | 275 页 | 276.96 KB | 1 年前3peewee Documentation Release 3.0.0
and then can be used to: Open and close connections. Execute queries. Manage transactions (and savepoints). Introspect tables, columns, indexes, and constraints. Model integration Peewee comes with support using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.4.0
and then can be used to: Open and close connections. Execute queries. Manage transactions (and savepoints). Introspect tables, columns, indexes, and constraints. Model integration Peewee comes with support using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
and then can be used to: Open and close connections. Execute queries. Manage transactions (and savepoints). Introspect tables, columns, indexes, and constraints. Model integration Peewee comes with support using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.5.0
and then can be used to: Open and close connections. Execute queries. Manage transactions (and savepoints). Introspect tables, columns, indexes, and constraints. Peewee comes with support for SQLite, using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.6.0
and then can be used to: Open and close connections. Execute queries. Manage transactions (and savepoints). Introspect tables, columns, indexes, and constraints. Peewee comes with support for SQLite, using atomic(), the outer-most call will be wrapped in a transaction, and any nested calls will use savepoints. with db.atomic() as txn: perform_operation() with db.atomic() as nested_txn: perform_another_operation() Peewee supports nested transactions through the use of savepoints (for more information, see savepoint()). Explicit transaction If you wish to explicitly run code in a transaction0 码力 | 377 页 | 399.12 KB | 1 年前3Django 2.2.x Documentation
the database, unless a transaction is active. See below for details. Django uses transactions or savepoints automatically to guarantee the integrity of ORM operations that require multiple queries, especially produces an exception, Django rolls back the transaction. You may perform subtransactions using savepoints in your view code, typically with the atomic() context manager. However, at the end of the view or rolls back the transaction when exiting the outermost block. You can disable the creation of savepoints for inner blocks by setting the savepoint argument to False. If an exception occurs, Django will0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 1.11.x Documentation
the database, unless a transaction is active. See below for details. Django uses transactions or savepoints automatically to guarantee the integrity of ORM operations that require multiple queries, especially produces an exception, Django rolls back the transaction. You may perform subtransactions using savepoints in your view code, typically with the atomic() context manager. However, at the end of the view or rolls back the transaction when exiting the outermost block. You can disable the creation of savepoints for inner blocks by setting the savepoint argument to False. If an exception occurs, Django will0 码力 | 2747 页 | 2.67 MB | 1 年前3Django 1.10.x Documentation
the database, unless a transaction is active. See below for details. Django uses transactions or savepoints automatically to guarantee the integrity of ORM operations that require multiple queries, especially produces an exception, Django rolls back the transaction. You may perform subtransactions using savepoints in your view code, typically with the atomic() context manager. However, at the end of the view or rolls back the transaction when exiting the outermost block. You can disable the creation of savepoints for inner blocks by setting the savepoint argument to False. If an exception occurs, Django will0 码力 | 2538 页 | 2.59 MB | 1 年前3Django 2.1.x Documentation
the database, unless a transaction is active. See below for details. Django uses transactions or savepoints automatically to guarantee the integrity of ORM operations that require multiple queries, especially produces an exception, Django rolls back the transaction. You may perform subtransactions using savepoints in your view code, typically with the atomic() context manager. However, at the end of the view or rolls back the transaction when exiting the outermost block. You can disable the creation of savepoints for inner blocks by setting the savepoint argument to False. If an exception occurs, Django will0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 23 条
- 1
- 2
- 3