lf5/backend/database.py
2024-01-24 16:14:43 +01:00

10 lines
215 B
Python

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