peewee Documentation Release 1.0.0an atomic update TweetCount.update(count=F('count') + 1).where(user=charlie) You can use django-style syntax to create select queries: # how many active users are there? User.filter(active=True).count() >>> [u.username for u in user_q] # <-- query is re- evaluated here [u'editor', u'admin'] Django-style queries If you are already familiar with the Django ORM, you can construct SelectQuery instances Category instances. Let’s use the following data-set: languages dynamic python ruby static c c++ java >>> Category.create(name='java', path='languages.static.java') # last one... >>> Category.get(name='python')0 码力 | 101 页 | 163.20 KB | 1 年前3
peewee Documentation
Release 1.0.0an atomic update TweetCount.update(count=F(’count’) + 1).where(user=charlie) You can use django-style syntax to create select queries: # how many active users are there? User.filter(active=True).count() ’desc’)) >>> [u.username for u in user_q] # <-- query is re-evaluated here [u’editor’, u’admin’] Django-style queries If you are already familiar with the Django ORM, you can construct SelectQuery instances instances. Let’s use the following data-set: • languages – dynamic * python * ruby – static * c * c++ * java >>> Category.create(name=’java’, path=’languages.static.java’) # last one... >>> Category0 码力 | 71 页 | 405.29 KB | 1 年前3
peewee Documentation Release 3.0.0helpful when getting started: 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 features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using com/coleifer/peewee/tree/master/examples/blog] if that’s more to your liking, however it is not covered in this guide. The example app uses the flask [http://flask.pocoo.org/] web framework which is very easy to get0 码力 | 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 features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using com/coleifer/peewee/tree/master/examples/blog] if that’s more to your liking, however it is not covered in this guide. The example app uses the flask [http://flask.pocoo.org/] web framework which is very easy to get0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0Here is a list of documents you might find most helpful when getting started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it it. Example queries taken from the PostgreSQL exercises website [https://pgexercises.com]. Guide to the various query operators describes how to construct queries and combine expressions. Field types table features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation
Release 3.5.0• 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 Quickstart This document presents a brief, high-level overview of Peewee’s primary features. This guide will cover: • Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 3.5.0 • Storing Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0Quickstart 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 to the various Quickstart This document presents a brief, high-level overview of Peewee’s primary features. This guide will cover: • Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 3.4.0 • Storing Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.1.0Here is a list of documents you might find most helpful when getting started: Quickstart guide – this guide covers all the bare essentials. It will take you between 5 and 10 minutes to go through it it. Example queries taken from the PostgreSQL exercises website [https://pgexercises.com]. Guide to the various query operators describes how to construct queries and combine expressions. Field types table features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.3.0Quickstart 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 to the various Quickstart This document presents a brief, high-level overview of Peewee’s primary features. This guide will cover: • Model Definition 4 Chapter 1. Contents: peewee Documentation, Release 3.3.0 • Storing Note: If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using peewee and the Flask framework. I strongly recommend opening an interactive shell0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.6.0features. This guide will cover: Model Definition Storing data Retrieving Data Note If you’d like something a bit more meaty, there is a thorough tutorial on creating a “twitter”-style web app using pet’s owner. This behavior is referred to as N+1 and it should generally be avoided. For an in-depth guide to working with relationships and joins, refer to the Relationships and Joins documentation. We can com/coleifer/peewee/tree/master/examples/blog] if that’s more to your liking, however it is not covered in this guide. The example app uses the flask [http://flask.pocoo.org/] web framework which is very easy to get0 码力 | 377 页 | 399.12 KB | 1 年前3
共 16 条
- 1
- 2













