updated postgres and mongo updated
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user