{"version":"1.0","type":"rich","title":"Nest Database Module (Type ORM) with environment variables support","description":"This example shows a NestJS DatabaseModule that dynamically configures TypeORM using environment-specific variables loaded through a custom EnvService. The EnvService reads a `.env` file via `dotenv.parse` and `fs.readFileSync`, casting values like `DB_PORT` with `parseInt` and converting `APP_DEBUG` to a boolean. The module uses `TypeOrmModule.forRoot` with settings from `config.DB_TYPE`, `config.DB_HOST`, and other properties, while `EnvModule` provides the service globally. The code defines an `EnvData` interface and includes a sample environment template.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9d7b855d5627adbd8eeba63eca9552fe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}