peewee Documentation Release 3.6.0
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give for person in Person.select(): print(person.name, person.pets.count(), 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Once again we’ve run into a classic example of N+1 query behavior attribute on the returned model instances. print(person.name, person.pet_count, 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Now let’s list all the people and the names of all their pets0 码力 | 377 页 | 399.12 KB | 1 年前3peewee Documentation Release 3.6.0
0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 2 Note 289 3 Indices and tables 291 i ii peewee Documentation, Release 3.6.0 Peewee is a simple and and fields • Querying • Relationships and joins Contents 1 peewee Documentation, Release 3.6.0 2 Contents CHAPTER 1 Contents: 1.1 Installing and Testing Most users will want to simply install the another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. • Cython: used for various speedups. Can give a big boost to certain0 码力 | 302 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.5.0
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give for person in Person.select(): print(person.name, person.pets.count(), 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Once again we’ve run into a classic example of N+1 query behavior attribute on the returned model instances. print(person.name, person.pet_count, 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Now let’s list all the people and the names of all their pets0 码力 | 347 页 | 380.80 KB | 1 年前3peewee Documentation Release 3.5.0
0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 2 Note 269 3 Indices and tables 271 i ii peewee Documentation, Release 3.5.0 Attention: Peewee 3 module that contains special/custom field types. Contents 1 peewee Documentation, Release 3.5.0 2 Contents CHAPTER 1 Contents: 1.1 Installing and Testing Most users will want to simply install the another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. • Cython: used for various speedups. Can give a big boost to certain0 码力 | 282 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.4.0
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give for person in Person.select(): print(person.name, person.pets.count(), 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Once again we’ve run into a classic example of N+1 query behavior attribute on the returned model instances. print(person.name, person.pet_count, 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Now let’s list all the people and the names of all their pets0 码力 | 349 页 | 382.34 KB | 1 年前3peewee Documentation Release 3.4.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 2 Note 271 3 Indices and tables 273 i ii peewee Documentation, Release 3.4.0 Attention: Peewee 3 module that contains special/custom field types. Contents 1 peewee Documentation, Release 3.4.0 2 Contents CHAPTER 1 Contents: 1.1 Installing and Testing Most users will want to simply install the another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. • Cython: used for various speedups. Can give a big boost to certain0 码力 | 284 页 | 1.03 MB | 1 年前3peewee Documentation Release 3.3.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 2 Note 267 3 Indices and tables 269 i ii peewee Documentation, Release 3.3.0 Attention: Peewee 3 module that contains special/custom field types. Contents 1 peewee Documentation, Release 3.3.0 2 Contents CHAPTER 1 Contents: 1.1 Installing and Testing Most users will want to simply install the another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. • Cython: used for various speedups. Can give a big boost to certain0 码力 | 280 页 | 1.02 MB | 1 年前3peewee Documentation Release 3.1.0
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give for person in Person.select(): print(person.name, person.pets.count(), 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Once again we’ve run into a classic example of N+1 query behavior attribute on the returned model instances. print(person.name, person.pet_count, 'pets') # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Now let’s list all the people and the names of all their pets0 码力 | 332 页 | 370.77 KB | 1 年前3peewee Documentation Release 3.0.0
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give for person in Person.select(): print person.name, person.pets.count(), 'pets' # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Once again we’ve run into a classic example of N+1 query behavior attribute on the returned model instances. print person.name, person.pet_count, 'pets' # prints: # Bob 2 pets # Grandma L. 0 pets # Herb 1 pets Now let’s list all the people and the names of all their pets0 码力 | 319 页 | 361.50 KB | 1 年前3peewee Documentation Release 2.10.2
another database, there are many DB-API 2.0-compatible drivers out there, such as pymysql or psycopg2 for MySQL and Postgres respectively. Cython [http://cython.org/]: used for various speedups. Can give 'pets' ... for pet in person.pets: ... print ' ', pet.name, pet.animal_type ... Bob 2 pets Kitty cat Fido dog Grandma L. 0 pets Herb 1 pets Mittens Jr cat Once again we’ve 'pets' ... for pet in person.pets: ... print ' ', pet.name, pet.animal_type ... Bob 2 pets Kitty cat Fido dog Grandma L. 0 pets Herb 1 pets Mittens Jr cat Even though we0 码力 | 275 页 | 276.96 KB | 1 年前3
共 16 条
- 1
- 2