tahrir.database module¶
Use sqlalchemy-helpers.
Import the functions we will use in the main code and in migrations.
- class tahrir.database.TahrirDatabaseExtension(app=None)[source]¶
Bases:
objectA Flask extension to configure the database manager according the the app’s configuration.
It cleans up database connections at the end of the requests, and creates the CLI endpoint to sync the database schema.