Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 3.66 KB

README.md

File metadata and controls

52 lines (45 loc) · 3.66 KB

Playhouse

The playhouse namespace contains numerous extensions to Peewee. These include vendor-specific database extensions, high-level abstractions to simplify working with databases, and tools for low-level database operations and introspection.

Vendor extensions

  • SQLite extensions
    • User-defined aggregates, collations, and functions
    • Full-text search (FTS3/4/5)
    • BM25 ranking algorithm implemented as SQLite C extension, backported to FTS4
    • Virtual tables and C extensions
    • Closure tables
  • APSW extensions: use Peewee with the powerful APSW SQLite driver.
  • BerkeleyDB: compile BerkeleyDB with SQLite compatibility API, then use with Peewee.
  • SQLCipher: encrypted SQLite databases.
  • Postgresql extensions
    • JSON and JSONB
    • HStore
    • Arrays
    • Server-side cursors
    • Full-text search

High-level libraries

Database management and framework support

  • pwiz: generate model code from a pre-existing database.
  • Schema migrations: modify your schema using high-level APIs. Even supports dropping or renaming columns in SQLite.
  • Connection pool: simple connection pooling.
  • Reflection: low-level, cross-platform database introspection
  • Database URLs: use URLs to connect to database
  • Read slave
  • Flask utils: paginated object lists, database connection management, and more.
  • Django integration: generate peewee models from Django models, use Peewee alongside your Django ORM code.