peewee Documentation Release 3.4.0statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left then that path is treated as the top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. Parameters: value:0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. value: the value of the current element. type: one0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0statements 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))) LEFT_OUTER) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top-most element. The rows returned by calls to children() have the following attributes: • key: the key of the current element relative to its parent. • value: the value of the current element. • type:0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0statements 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))) LEFT_OUTER) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top-most element. The rows returned by calls to children() have the following attributes: • key: the key of the current element relative to its parent. • value: the value of the current element. • type:0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.0.0statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. value: the value of the current element. type: one0 码力 | 319 页 | 361.50 KB | 1 年前3
peewee Documentation Release 2.10.2statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. By default it top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. value: the value of the current element. type: one0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2statements 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))) join(Tweet) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. By default it top-most element. The rows returned by calls to children() have the following attributes: • key: the key of the current element relative to its parent. • value: the value of the current element. • type:0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation
Release 3.5.0statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. value: the value of the current element. type: one0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.5.0statements 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))) LEFT_OUTER) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top-most element. The rows returned by calls to children() have the following attributes: • key: the key of the current element relative to its parent. • value: the value of the current element. • type:0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0statements 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))) .group_by(User)) The resulting query will return User objects with all their normal attributes plus an additional attribute count which will contain the count of tweets for each user. We use a left top- most element. The rows returned by calls to children() have the following attributes: key: the key of the current element relative to its parent. value: the value of the current element. type: one0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













