Use SQLAlchemy to connect to the database #66
Labels
No Label
ANSIBLE
BUG
CODE
DEVELOPMENT
DOCUMENTATION
FEEDBACK
FIX
HOWTOs
IDEA
INFRA
ISSUE
MAILSERVER
TESTS
To-Be-Reviewed
WEB
WEBSITE
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Disroot/gpg-lacre#66
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
The script
gpg-mailgate-web/cron.py
usesMySQLdb
package to access database. This makes it impossible to use other database backends.We'd like Lacre to be more flexible and easier to test (e.g. by testing with an in-memory SQLite database).
Goals
MySQLdb
references.Documentation
We'll need to provide this link and an overview in the documentation, as well as the sample config: Engine configuration.
Also, we'll be able to replace the
gpg-mailgate-web/schema.sql
file with a script that would initialise the schema. Using a dedicated tool to set up the database would be easier than having to issue database commands manually, esp. if we want wide adoption.sqlalchemyto fix-cron-scriptIt's been done within #64.