feat(backend): update DB layer with tests

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-18 16:25:57 +01:00
co-authored by Sisyphus
parent 982eb64098
commit 2d0071c453
3 changed files with 187 additions and 2 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ var DB *pgxpool.Pool
func Connect() error {
// Connect to Postgres inside Docker network
dsn := fmt.Sprintf(
"postgres://%s:%s@localhost:5432/%s?sslmode=disable",
"postgres://%s:%s@localhost:5432/%s?sslmode=disable&require_auth=scram-sha-256",
getEnv("POSTGRES_USER"),
getEnv("POSTGRES_PASSWORD"),
getEnv("POSTGRES_DB"),