Add CouchDB stuffs

This commit is contained in:
2025-10-26 05:34:17 -04:00
parent 32cdb239ff
commit 9d68082764
3 changed files with 38 additions and 4 deletions

13
vona/db/__init__.py Normal file
View File

@@ -0,0 +1,13 @@
import vona.config as config
import pycouchdb
import os
# NOTE: We don't do anything with the DB currently.
try:
server = pycouchdb.Server(config.db.url)
except Exception as e:
print(f"[FATL] Could not connect to DB: {e}")
os._exit(1)
print(f"[INFO] CouchDB version {server.info()['version']}")