peewee Documentation Release 3.6.0Insert queries Update queries Delete queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Changes in 3.0 Backwards-incompatible otherwise it will open a new connection. >>> db.connection()10> Connection Pooling Connection pooling is provided by the pool module, included in the playhouse statements as complex as you like. Let’s give all our employees a bonus equal to their previous bonus plus 10% of their salary: >>> query = Employee.update(bonus=(Employee.bonus + (Employee.salary * .1))) >>> 0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0== 'g' for person in Person.select().where(expression): print(person.name) # prints: # Grandma L. 10 Chapter 1. Contents: peewee Documentation, Release 3.6.0 1.2.4 Closing the database We’re done with otherwise it will open a new connection. >>> db.connection()10> 1.5.9 Connection Pooling Connection pooling is provided by the pool module, included in the playhouse statements as complex as you like. Let’s give all our employees a bonus equal to their previous bonus plus 10% of their salary: >>> query = Employee.update(bonus=(Employee.bonus + (Employee.salary * .1))) >>> 0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.0.0started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. Guide to the various query operators describes how to construct queries and Select queries Insert queries Update queries Delete queries More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd produce an ordered list of the first 10 surnames in the members table? The list must not contain duplicates. SELECT DISTINCT surname FROM members ORDER BY surname LIMIT 10; query = (Member .select(Member0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation
Release 3.5.0started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. Example Twitter app written using Flask framework. Guide to the various query Insert queries Update queries Delete queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Changes in 3.0 Backwards-incompatible otherwise it will open a new connection. >>> db.connection()10> Connection Pooling Connection pooling is provided by the pool module, included in the playhouse 0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. Example queries taken from the PostgreSQL exercises website [https://pgexercises Insert queries Update queries Delete queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd produce an ordered list of the first 10 surnames in the members table? The list must not contain duplicates. SELECT DISTINCT surname FROM members ORDER BY surname LIMIT 10; query = (Member .select(Member0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. Example queries taken from the PostgreSQL exercises website [https://pgexercises Insert queries Update queries Delete queries Query Objects More Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd produce an ordered list of the first 10 surnames in the members table? The list must not contain duplicates. SELECT DISTINCT surname FROM members ORDER BY surname LIMIT 10; query = (Member .select(Member0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation Release 2.10.2started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. Guide to the various query operators describes how to construct queries and Transaction, Savepoint and ExecutionContext Metadata Types Misc Hacks Optimistic Locking Top object per group Top N objects per group Writing custom functions with SQLite Note If you find any bugs, odd default all queries go to the master, since that is what # is defined on our model. for i in range(10): Data.create(value=i) # But what if we want to explicitly use the read replica? with Using(read_replica0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 3.5.0started: • Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. • Example Twitter app written using Flask framework. • Guide to the various == 'g' for person in Person.select().where(expression): print(person.name) # prints: # Grandma L. 10 Chapter 1. Contents: peewee Documentation, Release 3.5.0 1.2.4 Closing the database We’re done with otherwise it will open a new connection. >>> db.connection()10> 1.5.9 Connection Pooling Connection pooling is provided by the pool module, included in the playhouse 0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0started: • Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. • Example queries taken from the PostgreSQL exercises website. • Guide == 'g' for person in Person.select().where(expression): print(person.name) # prints: # Grandma L. 10 Chapter 1. Contents: peewee Documentation, Release 3.4.0 1.2.4 Closing the database We’re done with produce an ordered list of the first 10 surnames in the members table? The list must not contain duplicates. SELECT DISTINCT surname FROM members ORDER BY surname LIMIT 10; query = (Member .select(Member0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation
Release 3.3.0started: • Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it. • Example queries taken from the PostgreSQL exercises website. • Guide == 'g' for person in Person.select().where(expression): print(person.name) # prints: # Grandma L. 10 Chapter 1. Contents: peewee Documentation, Release 3.3.0 1.2.4 Closing the database We’re done with produce an ordered list of the first 10 surnames in the members table? The list must not contain duplicates. SELECT DISTINCT surname FROM members ORDER BY surname LIMIT 10; query = (Member .select(Member0 码力 | 280 页 | 1.02 MB | 1 年前3
共 16 条
- 1
- 2













