fix database, add test scripts
This commit is contained in:
parent
ecc9903615
commit
9be6b0b290
4 changed files with 18 additions and 6 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue