Skip to content

Support peewee 4.x#59

Open
brett wants to merge 1 commit into
etesync:legacyfrom
brett:fix/peewee4-sqliteext
Open

Support peewee 4.x#59
brett wants to merge 1 commit into
etesync:legacyfrom
brett:fix/peewee4-sqliteext

Conversation

@brett
Copy link
Copy Markdown

@brett brett commented Apr 18, 2026

peewee 4.0 removed playhouse.sqlite_ext.SqliteExtDatabase; its functionality folded into peewee.SqliteDatabase, which already accepts the pragmas= kwarg. Aliasing at the import site keeps the call site identical and remains backwards compatible with peewee 3.x.

Fixes ImportError: cannot import name 'SqliteExtDatabase' from 'playhouse.sqlite_ext' on peewee >= 4.0.

peewee 4.0 removed playhouse.sqlite_ext.SqliteExtDatabase; its
functionality folded into peewee.SqliteDatabase, which already
accepts the `pragmas=` kwarg. Aliasing at the import site keeps
the call site identical and remains backwards compatible with
peewee 3.x.

Fixes ImportError: cannot import name 'SqliteExtDatabase' from
'playhouse.sqlite_ext' on peewee >= 4.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant