updated postgres and mongo updated

This commit is contained in:
2025-04-20 14:21:13 +03:00
parent 71822681f2
commit cc19cb7e6d
85 changed files with 6090 additions and 1986 deletions

View File

@@ -15,12 +15,12 @@ class Configs(BaseSettings):
Postgresql configuration settings.
"""
DB: str = ""
USER: str = ""
PASSWORD: str = ""
HOST: str = ""
PORT: str = 0
ENGINE: str = ""
DB: str = "postgres"
USER: str = "postgres"
PASSWORD: str = "password"
HOST: str = "10.10.2.14"
PORT: int = 5432
ENGINE: str = "postgresql+psycopg2"
POOL_PRE_PING: bool = True
POOL_SIZE: int = 20
MAX_OVERFLOW: int = 10
@@ -36,6 +36,6 @@ class Configs(BaseSettings):
model_config = SettingsConfigDict(env_prefix="POSTGRES_")
postgres_configs = (
Configs()
) # singleton instance of the POSTGRESQL configuration settings
# singleton instance of the POSTGRESQL configuration settings
postgres_configs = Configs()
print('url', postgres_configs.url)