fix database, add test scripts

This commit is contained in:
hilfe 2024-01-24 15:39:03 +01:00
parent ecc9903615
commit 9be6b0b290
4 changed files with 18 additions and 6 deletions

View file

@ -1,7 +1,9 @@
#!/usr/bin/env python3
import os
from surrealdb import Surreal
from dotenv import load_dotenv
db = Surreal(f"{os.getenv('DB_HOST')}:{os.getenv('DB_PORT')}")
load_dotenv()
db = Surreal(f"ws://{os.environ.get('DB_HOST')}:{os.environ.get('DB_PORT')}/rpc")
# TODO: "SQL"-Prompts