refactor(db): set UTC timezone in pool config and add Querier docs

Set UTC timezone in pgxpool config to ensure consistent timestamp handling. Add detailed doc comment to Querier interface clarifying QueryRow vs Querier distinction.

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-24 23:42:49 +01:00
co-authored by Sisyphus
parent 6ec2cf1d69
commit 08c8828bb0
3 changed files with 26 additions and 2 deletions
+6 -1
View File
@@ -23,7 +23,12 @@ func Connect() error {
getEnv("POSTGRES_DB"),
)
pool, err := pgxpool.New(context.Background(), dsn)
poolCfg, err := pgxpool.ParseConfig(dsn)
if err != nil {
return err
}
poolCfg.ConnConfig.RuntimeParams["timezone"] = "UTC"
pool, err := pgxpool.NewWithConfig(context.Background(), poolCfg)
if err != nil {
return err
}