A set of async utils for DisQuest
DisQuest is an base system for storing and giving users on Discord xp. This is just the base set of coroutines needed in order to use DisQuest. DisQuest uses PostgreSQL. Alternatively, if you plan on passing in your own URI (which probably u would have to), DisQuest technically also supports MySQL/MariaDB. For MySQL/MariaDB, use asyncmy
instead of asyncpg
With Asyncpg (default):
pip install disquest-utils
With Asyncmy:
pip install disquest-utils[asyncmy]
DisQuest-Utils accepts URI connections in order to connection to the database. It is recommended to have python-dotenv installed, and then add the credentials as needed. The example below are only for examples, and adjust them as needed
Asyncpg:
CONNECTION_URI = "postgresql+asyncpg://user:password@host:port/dbname[?key=value&key=value...]"
Asyncmy:
CONNECTION_URI = "mysql+asyncmy://user:password@host:port/dbname[?key=value&key=value...]"
Now pass the variable CONNECTION_URI
as the uri arg of any method, and you should be ready to go