code-chaser/dex

[BUG] : `psycopg2` is not async

Closed this issue · 1 comments

PROBLEM :

  • discord.py is an asynchronous library whereas psycopg2 (used here for SQL database integration) is synchronous.
  • A synchronous library should never be used with an async library for obvious reasons.

POSSIBLE WORKAROUND :

  • Use ayncpg :- async library for interacting with postgreSQL databases.