PostgreSQL 8.0 Documentationcontrol the statements in a transaction in a more granular fashion through the use of save-points. Savepoints allow you to selectively discard parts of the transaction, while committing the rest. After defining Keep in mind that either releasing or rolling back to a savepoint will automatically release all savepoints that were defined after it. All this is happening within the transaction block, so none of it account, only to find later that we should have credited Wally’s account. We could do it using savepoints like this: BEGIN; UPDATE accounts SET balance = balance - 100.00 WHERE name = 'Alice';0 码力 | 1422 页 | 9.92 MB | 2 年前3
peewee Documentation
Release 2.10.2use 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 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 transaction • Manages the underlying database connection. • Executes queries. • Manage transactions and savepoints. • Create and drop tables and indexes. • Introspect the database. ## commit select = False0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 2.10.2use 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 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 transaction • Manages the underlying database connection. • Executes queries. • Manage transactions and savepoints. • Create and drop tables and indexes. • Introspect the database. ## commit select = False0 码力 | 275 页 | 276.96 KB | 1 年前3
Django 5.1 Documentationthe 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 码力 | 3513 页 | 3.17 MB | 1 年前3
Django 5.1.2 Documentationthe 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 码力 | 3519 页 | 3.17 MB | 1 年前3
Django 4.1.x Documentationthe 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 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 码力 | 3240 页 | 3.13 MB | 2 年前3
Django 4.0.x Documentationthe 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 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 码力 | 3184 页 | 3.14 MB | 2 年前3
peewee Documentation
Release 3.3.0then 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 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 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 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0then 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 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 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 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.0.0can be used to: • Open and close connections. • Execute queries. • Manage transactions (and savepoints). • Introspect tables, columns, indexes, and constraints. • Model integration Peewee comes with 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 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 码力 | 319 页 | 361.50 KB | 1 年前3
共 156 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16
相关搜索词
PostgreSQLTablespacesOIDPoint-In-Time RecoverySavepointsPeewee ORMDatabaseModelQueryPerformance OptimizationpeeweeORM数据库扩展模块SQLiteDatabaseDjango框架Web开发视图模板模型安装指南开发服务器模板系统DjangoURL模型层视图层数据库迁移数据库连接模型定义事务管理查询构建PeeweeSqliteDatabasePostgresqlDatabaseJoinSQLAlchemyDatabase ConnectionTransaction Management













