You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove SQLite storage implementation and replace with PostgreSQL-only solution:
- Add PostgreSQL storage with JSONB support via doobie-postgres-circe
- Remove all SQLite dependencies and code
- Add storage configuration file approach with --storage CLI parameter
- Update CI/CD with PostgreSQL service container
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
}.leftMap(_ =>s"Invalid duration format: $str. Use HOCON format (e.g., 1h, 30m, 7d)")
67
-
.toValidatedNel
68
-
}
69
-
70
69
finalcaseclassConfig(collector: Option[Path],
71
70
iglu: Option[Path],
72
71
outputFormat: OutputFormat,
73
72
destination: Option[Uri],
74
73
yauaa: Boolean,
75
-
storage: StorageConfig,
74
+
storage: StorageMode,
76
75
auth: Option[Path])
77
76
78
77
privatevalcollector=Opts.option[Path]("collector-config", "Configuration file for Collector", "c", "config.hocon").orNone
@@ -81,11 +80,7 @@ object Configuration {
81
80
privatevaloutputJson=Opts.flag("output-json", "Output events in JSON format to standard output or HTTP destination (with a separate key for each schema)", "j").orFalse
82
81
privatevaldestination=Opts.option[Uri]("destination", "HTTP(s) URL to send output data to (requires --output-json or --output-tsv)", "d").orNone
83
82
privatevalnoStorage=Opts.flag("no-storage", "Do not store events anywhere, and disable the API (handy if using Micro purely for output)").orFalse
84
-
privatevalstoragePath=Opts.option[Path]("storage-file", "Path to an SQLite database file for persistent storage", "s").orNone
85
-
privatevalstorageTtl=Opts.option[FiniteDuration]("storage-ttl", "Time-to-live for events in persistent storage (e.g. 1h, 1d; default: 7d)")
86
-
.withDefault(7.days)
87
-
privatevalstorageCleanupInterval=Opts.option[FiniteDuration]("storage-cleanup-interval", "Interval for cleanup of expired events in persistent storage (e.g. 1h, 1d; default: 1h)")
88
-
.withDefault(1.hour)
83
+
privatevalstorage=Opts.option[Path]("storage", "Configuration file for PostgreSQL storage", "s", "storage.hocon").orNone
89
84
privatevalyauaa=Opts.flag("yauaa", "Enable YAUAA user agent enrichment").orFalse
90
85
privatevalauth=Opts.option[Path]("auth", "Configuration file for authentication", "a", "auth.hocon").orNone
91
86
@@ -99,22 +94,18 @@ object Configuration {
99
94
case (true, true, _) =>"Cannot specify both --output-tsv and --output-json".invalidNel[(OutputFormat, Option[Uri])]
0 commit comments