Initial commit: SIBU 2.0 MISSION

This commit is contained in:
2026-02-21 09:53:31 -05:00
commit 0c7aa53c8b
400 changed files with 67708 additions and 0 deletions

25
backend/check_db_async.py Normal file
View File

@ -0,0 +1,25 @@
import asyncio
import asyncpg
async def check_db():
creds = [
("sibu", "sibu", "sibu"),
("postgres", "postgres", "postgres"),
("postgres", "postgres", "sibu"),
("postgres", "", "postgres"),
("sibu", "", "sibu"),
]
for user, pw, db in creds:
url = f"postgresql://{user}:{pw}@localhost:5432/{db}"
print(f"Testing {url}...")
try:
conn = await asyncpg.connect(url, timeout=5)
print(f"!!! SUCCESS with {url} !!!")
await conn.close()
return
except Exception as e:
print(f"Failed: {type(e).__name__}: {e}")
if __name__ == "__main__":
asyncio.run(check_db())