Can't load plugin: sqlalchemy.dialects:postgresql - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Can't load plugin: sqlalchemy.dialects:postgresql (/thread-41841.html) |
Can't load plugin: sqlalchemy.dialects:postgresql - magomes - Mar-25-2024 Can't load plugin: sqlalchemy.dialects:postgresql ....... This my code: import sqlalchemy as s import psycopg2 as p eng = s.engine.create_engine(s.URL.create("postgresql://xxxx:xxxx@localhost:5432/MyDataBase")) met = s.MetaData.create_all(eng, checkfirst=True) def update_data(table, conditions, values): with eng.connect() as conn: if conn is not None: print("Esta conecta ao banco") else: print("Esta faltando algo") RE: Can't load plugin: sqlalchemy.dialects:postgresql - Larz60+ - Mar-25-2024 change line 4 which currently directs sqlalchemy to PostgreSQL RE: Can't load plugin: sqlalchemy.dialects:postgresql - magomes - Mar-26-2024 (Mar-25-2024, 08:28 PM)Larz60+ Wrote: change line 4 which currently directs sqlalchemy to PostgreSQL Thanks. |