chore: prepare cloud merge point with docker and firebase configs in movexe fork Boris account? No, current user.

This commit is contained in:
movexe 2026-04-17 05:27:17 -03:00
parent b38a297349
commit 4a6b335ce3
14 changed files with 263 additions and 2 deletions

View file

@ -0,0 +1,19 @@
import psycopg
import os
from dotenv import load_dotenv
def main():
load_dotenv()
db_url = os.getenv("DATABASE_URL")
db_url = db_url.replace("postgresql+asyncpg://", "postgresql://")
db_url = db_url.replace("ssl=require", "sslmode=require")
print(f"Connecting to {db_url} using PSYCOPG")
try:
with psycopg.connect(db_url) as conn:
print("SUCCESS: Connected to Neon DB via Psycopg!")
except Exception as e:
print(f"ERROR: {e}")
if __name__ == "__main__":
main()