suou.peewee

Utilities for peewee, the beginner-friendly Python ORM.

Functions

connect_reconnect(db)

Make a Peewee database object suitable for asynchronous connections.

Classes

ConnectToDatabase(db)

PeeweeConnectionState(**kwargs)

ReconnectMysqlDatabase(*args, **kwargs)

MySQLDatabase subclass that correctly handles disconnection in long-running processes.

RegexCharField(regex, *a[, text_transform])

CharField() which validates its input before storing.

SiqField([null, index, unique, column_name, ...])

Field holding a SIQ.

SnowflakeField([null, index, unique, ...])

Field holding a snowflake.