Skip to content

Commit 1432c36

Browse files
committed
chore: add database settings
1 parent 9c6bc01 commit 1432c36

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/settings.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ class Settings(BaseSettings):
2020
REDIS_GROUP: str = "extractors"
2121
REDIS_CONSUMER: str = "package-consumer"
2222

23+
# Database Configuration
24+
DB_MIN_POOL_SIZE: int = 10
25+
DB_MAX_POOL_SIZE: int = 100
26+
DB_MAX_IDLE_TIME_MS: int = 60000
27+
DB_DEFAULT_QUERY_TIMEOUT_MS: int = 30000
28+
DB_SMTS_COLLECTION: str = "smts"
29+
DB_OPERATION_RESULT_COLLECTION: str = "operation_results"
30+
DB_API_KEY_COLLECTION: str = "api_keys"
31+
DB_VULNERABILITIES_COLLECTION: str = "vulnerabilities"
2332

2433
@lru_cache
2534
def get_settings() -> Settings:

0 commit comments

Comments
 (0)