Skip to content
Back to skills

Go Postgres

ASecurity

Go и PostgreSQL: database/sql, pgx, транзакции, пул соединений, миграции.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentgosqldatabase

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add justxor/golang-agent-skills-ru --skill go-postgres --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Postgres?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Postgres
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/justxor-go-postgres/badge)](https://www.skillsdirectory.com/skills/justxor-go-postgres)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-postgres
description: "Go и PostgreSQL: database/sql, pgx, транзакции, пул соединений, миграции."
---

# PostgreSQL в Go
1. Изучи схему, ограничения, индексы и границы транзакций.
2. Используй параметры SQL, QueryContext/ExecContext и проверяй errors.Is(err, sql.ErrNoRows).
3. Закрывай rows; после обхода проверяй rows.Err().
4. sql.DB — общий пул. Настрой лимиты по бюджету соединений и числу экземпляров.
5. Проверь ошибки BeginTx, запроса и Commit. Выполни defer tx.Rollback().
6. Не держи транзакцию во время обращения к независимому удаленному сервису.
## Приемка
Тесты на commit/rollback, конфликт уникальности, отмену и пустой результат. Для миграций отдельно оцени совместимость приложения до/после релиза; не исполняй миграции в production без явного разрешения.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.