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,21 @@
import asyncio
import asyncpg
import os
from dotenv import load_dotenv
async def main():
load_dotenv()
db_url = os.getenv("DATABASE_URL")
if db_url.startswith("postgresql+asyncpg"):
db_url = db_url.replace("postgresql+asyncpg", "postgresql")
print(f"Connecting to {db_url}")
try:
conn = await asyncpg.connect(db_url)
print("SUCCESS: Connected to Neon DB!")
await conn.close()
except Exception as e:
print(f"ERROR: {e}")
if __name__ == "__main__":
asyncio.run(main())