Centralize Postgres connection string policy across all modules
Extract connection string building into PostgresConnectionStringPolicy so all services use consistent pooling, application_name, and timeout settings. Adopt the new policy in 20+ module DataSource/ServiceCollectionExtensions classes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -236,6 +236,7 @@ public static class VexLensServiceCollectionExtensions
|
||||
{
|
||||
var connStringBuilder = new NpgsqlConnectionStringBuilder(options.ConnectionString)
|
||||
{
|
||||
ApplicationName = "stellaops-vexlens",
|
||||
CommandTimeout = options.CommandTimeoutSeconds
|
||||
};
|
||||
var builder = new NpgsqlDataSourceBuilder(connStringBuilder.ConnectionString);
|
||||
@@ -274,6 +275,7 @@ public static class VexLensServiceCollectionExtensions
|
||||
{
|
||||
var connStringBuilder = new NpgsqlConnectionStringBuilder(options.ConnectionString)
|
||||
{
|
||||
ApplicationName = "stellaops-vexlens",
|
||||
CommandTimeout = options.CommandTimeoutSeconds
|
||||
};
|
||||
var builder = new NpgsqlDataSourceBuilder(connStringBuilder.ConnectionString);
|
||||
|
||||
@@ -4,5 +4,6 @@ Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_sol
|
||||
|
||||
| Task ID | Status | Notes |
|
||||
| --- | --- | --- |
|
||||
| SPRINT_20260405_011-XPORT | DONE | `docs/implplan/SPRINT_20260405_011___Libraries_transport_pooling_and_attribution_hardening.md`: named VexLens PostgreSQL consensus-store data sources. |
|
||||
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/VexLens/StellaOps.VexLens/StellaOps.VexLens.md. |
|
||||
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |
|
||||
|
||||
Reference in New Issue
Block a user