Models and Fields Fields Field types table Field initialization arguments Some fields take special parameters… Default field values ForeignKeyField DateTimeField, DateField an...
Installing and Testing Installing with git Running tests Optional dependencies Installing and Testing Most users will want to simply install the latest version, hosted on Py...
Selecting from multiple sources More complex example Selecting from multiple sources If we wished to list all the tweets in the database, along with the username of their auth...
pwiz, a model generator Command-line options pwiz examples pwiz, a model generator pwiz is a little script that ships with peewee and is capable of introspecting an existing...
pwiz, a model generator Command-line options pwiz examples pwiz, a model generator pwiz is a little script that ships with peewee and is capable ofintrospecting an existing ...
Adding user-defined operators Adding user-defined operators Because I ran out of python operators to overload, there are some missingoperators in peewee, for instance modulo . ...
Model options and table metadata Meta.primary_key Table Names Model options and table metadata In order not to pollute the model namespace, model-specific configuration is pl...
Selecting from multiple sources More complex example Selecting from multiple sources If we wished to list all the tweets in the database, along with the username oftheir autho...
Example app Running the example Diving into the code Models Creating tables Establishing a database connection Making queries Creating new objects Performing subqueries Othe...
Adding a new Database Driver Adding a new Database Driver Peewee comes with built-in support for Postgres, MySQL and SQLite. Thesedatabases are very popular and run the gamut f...