Skip to content

docs: expand README with a high-level usage guide - #62

Merged
VojtechVitek merged 2 commits into
masterfrom
docs-readme
Aug 7, 2026
Merged

docs: expand README with a high-level usage guide#62
VojtechVitek merged 2 commits into
masterfrom
docs-readme

Conversation

@VojtechVitek

Copy link
Copy Markdown
Member

What

Grows the README from a short stub into a plain-English guide to the library.

Sections added:

  • What pgkit is and what problems it solves (the boilerplate it removes)
  • What's inside (pgx / squirrel / scany / upper·db) and pgkit's own helpers
  • Install and Connect
  • Two ways to use it: the low-level query builder (Exec/GetAll/GetOne/RawQuery) and the high-level Table[T] CRUD
  • omitempty vs omitzero tag semantics
  • Pagination (offset + cursor), Transactions, and extras (soft delete, timestamps, streaming, LockForUpdate, tracing)
  • Pointers to the test files as the full, up-to-date reference

Preserved

The original badges, library links, go get line, tests/pgkit_test.go reference, and the [MIT](./LICENSE) section are all kept — the new content is added around them, nothing removed.

Notes

Docs-only; no code changes. Every code snippet was checked against the current API (Connect, Table[T], NewPage, WithMode, WithTx, RawQuery(...).Build(...), GetAll/GetOne, ErrNoRows).

🤖 Generated with Claude Code

VojtechVitek and others added 2 commits August 6, 2026 16:54
Grow the README from a stub into a high-level guide, in plain English:
what pgkit is, the problems it solves, install/connect, the low-level
query-builder path and the high-level Table[T] CRUD path, db tag
semantics (omitempty/omitzero), pagination (offset + cursor),
transactions, and extras (soft delete, timestamps, streaming, job
queues, tracing).

Keeps the original badges, library links, go get line, tests reference,
and MIT license section; only adds around them.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Restore the original "lightweight PostgreSQL sugar combining the use of.."
line and its library bullet list verbatim as the lead, instead of the
reworded intro. Keep only the additive "not an ORM" clarification below
it, and drop the duplicate library list from the "What pgkit adds"
section.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@VojtechVitek
VojtechVitek merged commit 9b5740c into master Aug 7, 2026
1 check passed
@VojtechVitek
VojtechVitek deleted the docs-readme branch August 7, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant