1234567891011 |
- import psycopg2 as pg
- from FlaskApp.BackendApi.config import host, user, db_name, password
- def connect():
- try:
- print('Connecting to the PostgreSQL Database...')
- conn1 = f"postgresql://postgres@192.168.1.98/postgres"
- print("Success database connect!")
- return conn1
- except:
- print('Connection Has Failed...')
|