migrate to postgres

This commit is contained in:
m
2026-07-12 23:49:25 +02:00
parent e7b418b004
commit e59fde6a48
15 changed files with 151 additions and 125 deletions
+2 -2
View File
@@ -13,9 +13,9 @@ const getHealth = `-- name: GetHealth :one
SELECT 1 AS ok
`
func (q *Queries) GetHealth(ctx context.Context) (int64, error) {
func (q *Queries) GetHealth(ctx context.Context) (int32, error) {
row := q.db.QueryRowContext(ctx, getHealth)
var ok int64
var ok int32
err := row.Scan(&ok)
return ok, err
}