peewee Documentation Release 3.0.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 3.4.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.1.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.3.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have to This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. 1.12.5 Autocommit Mode By default, Peewee operates in autocommit mode, such that0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have to This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. 1.12.5 Autocommit Mode By default, Peewee operates in autocommit mode, such that0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.5.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have Prints ["mickey", "zaizee"] manual_commit() Create a context-manager which disables all transaction management for the duration of the wrapped block. Example: with db.manual_commit(): db.begin()0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.5.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have to Prints ["mickey", "zaizee"] manual_commit() Create a context-manager which disables all transaction management for the duration of the wrapped block. Example: with db.manual_commit(): db.begin() # Begin0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.6.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have Prints ["mickey", "zaizee"] manual_commit() Create a context-manager which disables all transaction management for the duration of the wrapped block. Example: with db.manual_commit(): db.begin()0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, Peewee operates in autocommit mode, such that any completely, you can use the Database.manual_commit() context-manager/decorator. Here is how you might emulate the behavior of the transaction() context manager: with db.manual_commit(): db.begin() # Have to Documentation, Release 3.6.0 manual_commit() Create a context-manager which disables all transaction management for the duration of the wrapped block. Example: with db.manual_commit(): db.begin() # Begin0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 2.10.2
This differs from the behavior of transaction, which will automatically open a new transaction after manual commit/rollback. Autocommit Mode By default, databases are initialized with autocommit=True, you be continually recycled until either it exceeds the stale timeout or is closed explicitly (using .manual_close()). By default, all your application needs to do is ensure that connections are closed when available connections. If close_conn=True, then conn will be closed and not be returned to the pool. manual_close() Close the currently-open connection without returning it to the pool. class PooledPostgresqlDatabase0 码力 | 275 页 | 276.96 KB | 1 年前3
共 11 条
- 1
- 2