Skip to content

fix: remove fake APIs from README, add explain/getColumns to Driver#11

Merged
brainkim merged 1 commit intomainfrom
fix/readme-and-driver-api
Dec 28, 2025
Merged

fix: remove fake APIs from README, add explain/getColumns to Driver#11
brainkim merged 1 commit intomainfrom
fix/readme-and-driver-api

Conversation

@brainkim
Copy link
Copy Markdown
Member

Summary

  • Remove nonexistent APIs from README that were never implemented: Users.ddl(), Posts.ensureColumn(), Posts.ensureIndex(), Users.copyColumn()
  • Document the real APIs: db.ensureTable(), db.ensureView(), db.ensureConstraints(), db.copyColumn(), db.explain()
  • Make getColumns required on Driver interface (was optional with dialect-switching fallback in database.ts)
  • Add explain() to Driver interface - each driver implements its own EXPLAIN syntax
  • Remove dialect-switching logic from database.ts #checkColumnExists - drivers own dialect-specific behavior

Test plan

  • All existing tests pass
  • Build/lint/typecheck pass

🤖 Generated with Claude Code

- Remove nonexistent APIs from README: Users.ddl(), Posts.ensureColumn(),
  Posts.ensureIndex(), Users.copyColumn()
- Document real APIs: db.ensureTable(), db.ensureView(), db.ensureConstraints(),
  db.copyColumn(), db.explain()
- Make getColumns required on Driver interface (was optional)
- Add explain() to Driver interface - each driver owns its EXPLAIN syntax
- Remove dialect-switching fallback from database.ts #checkColumnExists

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@brainkim brainkim merged commit b5dcb62 into main Dec 28, 2025
1 check passed
@brainkim brainkim deleted the fix/readme-and-driver-api branch December 28, 2025 09:25
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