Config section: nosql:
Env prefix: ORI_NOSQL__
Key Type Default Env Variable Description enabledbooltrueORI_NOSQL__ENABLEDEnable NoSQL subsystem driverstr"mongodb"ORI_NOSQL__DRIVERNoSQL driver name (mongodb, firestore) mongodbMongoDBConfigdefaults ORI_NOSQL__MONGODB__*MongoDB connection settings firestoreFirestoreConfig | NonenullORI_NOSQL__FIRESTORE__*Firestore settings (used when driver="firestore") backendslist[NamedNoSQLConfig][]ORI_NOSQL__BACKENDS__*Named multi-backend entries
Key Type Default Env Variable Description uristr"mongodb://localhost:27017"ORI_NOSQL__MONGODB__URIConnection URI databasestr"oridecon"ORI_NOSQL__MONGODB__DATABASEDatabase name max_pool_sizeint100ORI_NOSQL__MONGODB__MAX_POOL_SIZEMax connection pool size min_pool_sizeint10ORI_NOSQL__MONGODB__MIN_POOL_SIZEMin connection pool size server_selection_timeout_msint5000ORI_NOSQL__MONGODB__SERVER_SELECTION_TIMEOUT_MSServer selection timeout (ms) connect_timeout_msint10000ORI_NOSQL__MONGODB__CONNECT_TIMEOUT_MSConnection timeout (ms) socket_timeout_msint30000ORI_NOSQL__MONGODB__SOCKET_TIMEOUT_MSSocket timeout (ms) retry_writesbooltrueORI_NOSQL__MONGODB__RETRY_WRITESEnable write retries retry_readsbooltrueORI_NOSQL__MONGODB__RETRY_READSEnable read retries read_preferencestr"primaryPreferred"ORI_NOSQL__MONGODB__READ_PREFERENCERead preference mode write_concern_wstr | int"majority"ORI_NOSQL__MONGODB__WRITE_CONCERN_WWrite concern level auth_sourcestr"admin"ORI_NOSQL__MONGODB__AUTH_SOURCEAuthentication database
Key Type Default Env Variable Description project_idstr(required) ORI_NOSQL__FIRESTORE__PROJECT_IDGoogle Cloud project ID credentials_jsonstr | NonenullORI_NOSQL__FIRESTORE__CREDENTIALS_JSONService account JSON key (path or raw) database_idstr"(default)"ORI_NOSQL__FIRESTORE__DATABASE_IDFirestore database ID
Key Type Default Env Variable Description table_namestr"oridecon"— Default table name regionstr"us-east-1"— AWS region access_keystr | Nonenull— AWS access key ID secret_keystr | Nonenull— AWS secret access key endpoint_urlstr | Nonenull— Custom endpoint (e.g., http://localhost:8000) pk_fieldstr"_id"— Partition key attribute name
DynamoDBConfig has no environment variable overrides — NoSQLConfig wires only Mongo and Firestore backends. Configure DynamoDB programmatically via DynamoDBConfig(...).
Named backends follow the same env pattern with an index: ORI_NOSQL__BACKENDS__0__NAME, ORI_NOSQL__BACKENDS__0__DRIVER, etc.
uri : mongodb://localhost:27017
uri : mongodb://admin:${MONGODB_PASSWORD}@cluster0.example.mongodb.net
write_concern_w : majority
uri : mongodb://primary:27017
uri : mongodb://analytics:27017
export ORI_NOSQL__MONGODB__URI = "mongodb://prod-cluster:27017"
export ORI_NOSQL__MONGODB__DATABASE = "production_db"
export ORI_NOSQL__DRIVER = "mongodb"