tortoise-orm
is... not dead, per se, but it's pretty evident that it's essentially on maintenance-only mode. Its typehinting is also lackluster, and its feature set is sometimes limiting.
Ideally, we would switch over to prisma
(the Python variant), as the Realms Playerlist Bot has done. It produces amazing typehints and is well supported.
The only real issue with Prisma is that my current database provider for this bot, Supabase (yes, under its free tier, only the Playerlist Bot pays for a database right now), provides a URL for connections under IPv4 that Prisma cannot handle (mostly because the URL is technically invalidly formatted). The IPv6 URL can be handle by Prisma, but IPv6 has issues on the computers I use to test and run the bot, so some workaround has to be found. I have ideas, but who knows.
If I can't find a workaround, another library will have to be found, ideally one that can support psycopg
as well as the current asyncpg
as I've heard that psycopg
can handle the string better. An alternative is switching to another (free) database provider, which is becoming more tempting by the day, admittedly.