Skip to content

feat(pdo): add column-meta statement wrapper#29

Merged
Chemaclass merged 1 commit into
mainfrom
feat/15-column-meta
Jun 3, 2026
Merged

feat(pdo): add column-meta statement wrapper#29
Chemaclass merged 1 commit into
mainfrom
feat/15-column-meta

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

Wraps PDOStatement::getColumnMeta as pdo/column-meta: (column-meta stmt column). Returns the column's metadata as a map (keys keywordised via the existing row->map), or nil when no metadata is available (getColumnMeta returned false).

(pdo/column-meta stmt 1)
;; => {:name "name" :table "t1" :pdo_type 2 :len -1 :precision 0 ...}
  • Removed from the "Not implemented yet" block in src/pdo/statement.phel.
  • Test column-meta-returns-map asserts the driver-stable :name and :table keys (other keys vary by driver/version, so they are not asserted).
  • README API table + CHANGELOG ## [Unreleased] updated.

Polish pass: no refactor needed - reuses row->map, consistent with the other readers.

composer test green (47 assertions).

Closes #15

@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 9bae95c into main Jun 3, 2026
1 check passed
@Chemaclass Chemaclass deleted the feat/15-column-meta branch June 3, 2026 05:17
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/column-meta wrapper for PDOStatement::getColumnMeta

1 participant