The current implementation of our application relies solely on writing raw SQL queries using aiosqlite, which is inconvenient, lacking in structure, and not to mention vastly intimidating to people who are unfamiliar with SQL. To address these limitations and improve our bot structure, I propose a complete transition to Tortoise ORM, or PyPika.
PROPOSAL
I'm personally in favor of moving fully to Tortoise ORM. This would be more structured, cleaner, and easier to work with; On the other hand, if we just wanted to switch away from SQL queries we could debate using something like PyPika just to create them. But I'm still personally not a fan of manually defining migrations like we currently are.
Overall this would be fairly easy to implement as Tortoise ORM is already compatible with our current database.db, migration shouldn't be much of an issue.
ISSUE:
The current implementation of our application relies solely on writing raw SQL queries using
aiosqlite
, which is inconvenient, lacking in structure, and not to mention vastly intimidating to people who are unfamiliar with SQL. To address these limitations and improve our bot structure, I propose a complete transition toTortoise ORM
, orPyPika
.PROPOSAL
I'm personally in favor of moving fully to
Tortoise ORM
. This would be more structured, cleaner, and easier to work with; On the other hand, if we just wanted to switch away from SQL queries we could debate using something likePyPika
just to create them. But I'm still personally not a fan of manually defining migrations like we currently are.Overall this would be fairly easy to implement as Tortoise ORM is already compatible with our current
database.db
, migration shouldn't be much of an issue.