Closed mazziechai closed 3 years ago
I would probably avoid the raw sql thru discord.
for the others, checkout sqlalchemy Query .filter
and .order_by
Commands. All the above should be one liners.
for the others, checkout sqlalchemy Query
.filter
and.order_by
Commands. All the above should be one liners.
I updated the SQLAlchemy syntax to 2.0 using the future
flag when instantiating the engine and session, so Query
isn't used anymore.
I also had the idea of allowing raw SQL queries through the Discord bot (whitelisted to only us), but I'm on the fence about allowing this. After all, I can just pull up the PostgreSQL shell and run commands through that. It would be a convenient option, but potentially unsafe.