Schema Migrations Example usage Supported Operations Migrations API Schema Migrations Peewee now supports schema migrations, with well-tested support for Postgresql, SQLite ...
Self-joins Using model aliases Using subqueries Self-joins Peewee supports constructing queries containing a self-join. Using model aliases To join on the same model (tabl...
Security and SQL Injection Security and SQL Injection By default peewee will parameterize queries, so any parameters passed in by the user will be escaped. The only exception t...
Security and SQL Injection Security and SQL Injection By default peewee will parameterize queries, so any parameters passed in by the user will be escaped. The only exception t...
Expressions Expressions Peewee is designed to provide a simple, expressive, and pythonic way of constructing SQL queries. This section will provide a quick overview of some com...
Joining on arbitrary fields Joining on arbitrary fields If a foreign key does not exist between two tables you can still perform ajoin, but you must manually specify the join p...
Model Model class Metadata (model[, database=None[, table_name=None[, indexes=None[, primary_key=None[, constraints=None[, schema=None[, only_save_dirty=False[, depends_on=Non...