func truncateAndClose(pool *pgx.ConnPool) { if _, err := pool.Exec("TRUNCATE TABLE que_jobs"); err != nil { panic(err) } pool.Close() }