Skip to content

Rewrite the README - #14

Merged
ellisgl merged 1 commit into
releasefrom
readme-rewrite
Nov 25, 2026
Merged

ellisgl merged 1 commit into
releasefrom
readme-rewrite

Conversation

@ellisgl

@ellisgl ellisgl commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Rewrites the README so it explains what the library does, why you'd use it, and how. Rendered preview.

New

  • An opening example and a short side-by-side with plain PDO.
  • A quick start: connect, insert, select (rows, row, value), update/delete, transactions.
  • How statements work: the two placeholder kinds (? and %%), ordering, string literals, and getComputed().
  • Reference tables for every binding and query method.
  • Security: which bindings are safe for user input, and a note on the 4.0.11 bStrArr() fix.
  • Custom bindings, Limitations (invalid dates fall back to 1970-01-01, bLike() doesn't escape wildcards, and so on) and Development (running the tests with Docker).

Corrected

  • bIntArray() has no $default parameter; it throws on an empty array.
  • selectValue() has a $caseSensitive parameter before $default.
  • rollback() was missing. selectRow() was listed twice.

Removed: the TODO list, the "Latest" block (CHANGELOG.md has it) and the link to nkt/flame, last updated in 2015.

Every code example, and each documented behavior, was checked against MySQL 8.4 (37 checks).

🤖 Generated with Claude Code

- Lead with what the library does and a side-by-side with plain PDO
- Quick start covering connect, insert, select, update and transactions
- Explain the ? and %% placeholders and getComputed()
- Reference tables for binding and query methods, with corrected
  signatures (bIntArray(), selectValue()) and the missing rollback()
- New Security, Custom bindings, Limitations and Development sections
- Drop the stale TODO list and the "Latest" block (see CHANGELOG.md)
  and the link to an alternative package last updated in 2015

Every example was run against MySQL 8.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ellisgl
ellisgl merged commit 52dda0d into release Nov 25, 2026
7 checks passed
@ellisgl
ellisgl deleted the readme-rewrite branch November 25, 2026 15:12
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