Загрузка данных


import psycopg2

def get_connection():
    return psycopg2.connect(
        host="localhost",
        port="5432",
        dbname="shop_db",
        user="postgres",
        password="12345"
    )