Skip to content

feat(pdo): add close-cursor statement wrapper#24

Merged
Chemaclass merged 1 commit into
mainfrom
feat/9-close-cursor
Jun 3, 2026
Merged

feat(pdo): add close-cursor statement wrapper#24
Chemaclass merged 1 commit into
mainfrom
feat/9-close-cursor

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

Wraps PDOStatement::closeCursor as pdo/close-cursor. Frees the cursor so the same prepared statement can be executed again; returns the statement so it threads through ->.

  • Removed from the "Not implemented yet" block in src/pdo/statement.phel.
  • Test close-cursor-allows-re-execution: execute, fetch, close-cursor, re-execute, assert second result.
  • README API table + CHANGELOG ## [Unreleased] updated.

Polish pass: no refactor needed - mutator-style wrapper consistent with execute/bind-value.

composer test green (35 tests).

Closes #9

@Chemaclass Chemaclass added the enhancement New feature or request label Jun 3, 2026
@Chemaclass Chemaclass self-assigned this Jun 3, 2026
@Chemaclass Chemaclass merged commit c51583a into main Jun 3, 2026
1 check passed
@Chemaclass Chemaclass deleted the feat/9-close-cursor branch June 3, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement statement/close-cursor wrapper for PDOStatement::closeCursor

1 participant