peewee Documentation Release 2.10.2Speeding up Bulk Inserts Transactions Context manager Decorator Nesting Transactions Explicit transaction Autocommit Mode Playhouse, extensions to Peewee Sqlite Extensions SqliteQ Sqlite User-Defined Utils pskel Flask Utils API Reference Models Fields Query Types Database and its subclasses Transaction, Savepoint and ExecutionContext Metadata Types Misc Hacks Optimistic Locking Top object per group so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2constraint, so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique constraint, the up with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( 14 Chapter 1. Contents: peewee Documentation, Release 2.10.2 from_u search with BM25 ranking. • Support for custom functions, aggregates and collations • Advanced transaction support • And more! If you would like to use these awesome features, use the SqliteExtDatabase0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation Release 3.0.0Speeding up Bulk Inserts Transactions Context manager Decorator Nesting Transactions Explicit transaction Autocommit Mode Changes in 3.0 Backwards-incompatible New stuff API Documentation Database so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( from_user=get_current_user(), to_user=user)0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 3.4.0Speeding up Bulk Inserts Transactions Context manager Decorator Nesting Transactions Explicit transaction Autocommit Mode Changes in 3.0 Backwards-incompatible New stuff API Documentation Database so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( from_user=get_current_user(), to_user=user)0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.3.0constraint, so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique constraint, the up with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( from_user=get_current_user(), to_user=user) except IntegrityError: pass table_function() • For even more SQLite extensions, see SQLite Extensions Set locking mode for transaction SQLite transactions can be opened in three different modes: • Deferred (default) - only acquires0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0constraint, so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique constraint, the up with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( from_user=get_current_user(), to_user=user) except IntegrityError: pass table_function() • For even more SQLite extensions, see SQLite Extensions Set locking mode for transaction SQLite transactions can be opened in three different modes: • Deferred (default) - only acquires0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.1.0Speeding up Bulk Inserts Transactions Context manager Decorator Nesting Transactions Explicit transaction Autocommit Mode Changes in 3.0 Backwards-incompatible New stuff API Documentation Database so if the username is taken the database will raise an IntegrityError. try: with database.transaction(): # Attempt to create the user. If the username is taken, due to the # unique with duplicate rows: user = get_object_or_404(User, username=username) try: with database.transaction(): Relationship.create( from_user=get_current_user(), to_user=user)0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0table_function() • For even more SQLite extensions, see SQLite Extensions Set locking mode for transaction SQLite transactions can be opened in three different modes: • Deferred (default) - only acquires deferred until actually needed, it is possible that another thread or process could create a separate transaction and write to the database after the BEGIN on the current thread has executed. • Immediate - a immediately. In this mode, no other database may write to the database or open an immediate or exclusive transaction. Other processes can continue to read from the database, however. • Exclusive - opens an exclusive0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0table_function() For even more SQLite extensions, see SQLite Extensions Set locking mode for transaction SQLite transactions can be opened in three different modes: Deferred (default) - only acquires deferred until actually needed, it is possible that another thread or process could create a separate transaction and write to the database after the BEGIN on the current thread has executed. Immediate - a reserved immediately. In this mode, no other database may write to the database or open an immediate or exclusive transaction. Other processes can continue to read from the database, however. Exclusive - opens an exclusive0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.6.0table_function() • For even more SQLite extensions, see SQLite Extensions Set locking mode for transaction SQLite transactions can be opened in three different modes: • Deferred (default) - only acquires deferred until actually needed, it is possible that another thread or process could create a separate transaction and write to the database after the BEGIN on the current thread has executed. • Immediate - a immediately. In this mode, no other database may write to the database or open an immediate or exclusive transaction. Other processes can continue to read from the database, however. • Exclusive - opens an exclusive0 码力 | 302 页 | 1.02 MB | 1 年前3
共 138 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14













