Commit 8b29986
[Audit Service] DB Config Priority and Doc Update (#419)
* Remove unused dotenv dependency and clean up test helper files
* feat(database): Enhance database configuration handling and add support for PostgreSQL
- Updated NewDatabaseConfig to prioritize database type and path settings.
- Default to in-memory SQLite if no configuration is provided.
- Added tests for various database configurations including in-memory, file-based SQLite, and PostgreSQL.
- Introduced comprehensive API documentation for audit log operations.
- Created architecture and database configuration documentation for better understanding of the service structure and setup.
* Nits to #419 (#420)
* Nits to #419
* Update audit-service/database/client.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
* Update audit-service/database/client.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: ginaxu1 <167130561+ginaxu1@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 930e1b9 commit 8b29986
File tree
12 files changed
+1805
-320
lines changed- audit-service
- database
- docs
- handlers
- services
- v1/testutil
12 files changed
+1805
-320
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments