mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-16 10:01:59 -05:00
Remove psycopg2 completely.
This commit is contained in:
1 parent
f43b3b0ce5
commit
366dd3a973
23 files changed
+48
-4630
No files matched your search
@@ -39,12 +39,8 @@ from pgadmin.utils.constants import BINARY_PATHS, PSYCOPG3
|
||||
from pgadmin.utils import set_binary_path
|
||||
|
||||
from functools import wraps
|
||||
import psycopg
|
||||
|
||||
# Remove this condition, once psycopg2 will be removed completely
|
||||
if config.PG_DEFAULT_DRIVER == PSYCOPG3:
|
||||
import psycopg
|
||||
else:
|
||||
import psycopg2 as psycopg
|
||||
|
||||
CURRENT_PATH = os.path.abspath(os.path.join(os.path.dirname(
|
||||
os.path.realpath(__file__)), "../"))
|
||||
|
||||
Reference in new issue
Block a user