feat:
--Added Read Registered nodes API --Added DEL unregister Node
This commit is contained in:
1 parent
7a0e8c7cd6
commit
9977440c2d
4 files changed
+149
-18
No files matched your search
+17
-1
@@ -1,7 +1,23 @@
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker, declarative_base
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
DATABASE_URL = "postgresql://postgres:postgres@172.16.10.178:5444/postgres"
|
||||
|
||||
load_dotenv()
|
||||
|
||||
DB_HOST = os.getenv("DB_HOST")
|
||||
DB_PORT = os.getenv("DB_PORT")
|
||||
DB_NAME = os.getenv("DB_NAME")
|
||||
DB_USER = os.getenv("DB_USER")
|
||||
DB_PASSWORD = os.getenv("DB_PASSWORD")
|
||||
|
||||
DATABASE_URL = (
|
||||
f"postgresql://{DB_USER}:{DB_PASSWORD}"
|
||||
f"@{DB_HOST}:{DB_PORT}/{DB_NAME}"
|
||||
)
|
||||
|
||||
# DATABASE_URL = "postgresql://postgres:postgres@172.16.10.178:5444/postgres"
|
||||
|
||||
engine = create_engine(
|
||||
DATABASE_URL,
|
||||
|
||||
Reference in new issue
Block a user