peewee Documentation Release 2.10.2inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating records I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition Model classes, fields and model instances all map those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia0 码力 | 275 页 | 276.96 KB | 1 年前3
peewee Documentation
Release 2.10.2I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition Model classes, fields and model instances all those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy database. To get a single record from the database, use SelectQuery. get(): >>> grandma = Person.select().where(Person.name == 'Grandma L.').get() We can also use the equivalent shorthand Model.get(): >>>0 码力 | 221 页 | 844.06 KB | 1 年前3
peewee Documentation
Release 3.5.0I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition Model classes, fields and model instances all those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy database. To get a single record from the database, use Select.get(): grandma = Person.select().where(Person.name == 'Grandma L.').get() We can also use the equivalent shorthand Model.get(): grandma0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.5.0inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating records I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition Model classes, fields and model instances all map those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation
Release 3.4.0I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition Model classes, fields and model instances all those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy database. To get a single record from the database, use Select.get(): grandma = Person.select().where(Person.name == 'Grandma L.').get() We can also use the equivalent shorthand Model.get(): grandma0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.4.0inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating records I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition Model classes, fields and model instances all map those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.3.0I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition Model classes, fields and model instances all those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia). This is easy database. To get a single record from the database, use Select.get(): grandma = Person.select().where(Person.name == 'Grandma L.').get() We can also use the equivalent shorthand Model.get(): grandma0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.1.0inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating records I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition Model classes, fields and model instances all map those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign keys (wikipedia) [http://en.wikipedia0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.6.0I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. 1.2.1 Model Definition Model classes, fields and model instances all those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign key relationships. This is simple database. To get a single record from the database, use Select.get(): grandma = Person.select().where(Person.name == 'Grandma L.').get() We can also use the equivalent shorthand Model.get(): grandma0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0inserts Updating existing records Atomic updates Deleting records Selecting a single record Create or get Selecting multiple records Filtering records Sorting records Getting random records Paginating records I strongly recommend opening an interactive shell session and running the code. That way you can get a feel for typing in queries. Model Definition Model classes, fields and model instances all map those used by the database, so you can use Python types in your code without having to worry. Things get interesting when we set up relationships between models using foreign key relationships. This is simple0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













