-
Notifications
You must be signed in to change notification settings - Fork 12
Refresh README for current functionality #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refreshes the README documentation to reflect current functionality and improve clarity. The changes include updating system requirements (PHP 8.3+, database driver support), adding the phpstan command for static analysis, clarifying nullable return values for getById() and fetchOneWhere(), and fixing various typos throughout.
Changes:
- Updated requirements section to specify PHP 8.3+ and clarify database driver support (MySQL/MariaDB, PostgreSQL tested; SQLite supported but not tested)
- Added phpstan static analysis command to testing section
- Clarified nullable behavior:
getById()andfetchOneWhere()return null when no records are found - Fixed multiple typos: "Catgory" → "Category", "categoies" → "categories", "Arbitary" → "Arbitrary"
- Improved code formatting with proper markdown code blocks and consistent spacing in examples
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbb584322b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| * PHP >= 8.3 | ||
| * PDO with MySQL/MariaDB or PostgreSQL drivers | ||
| * SQLite is supported in code paths but not covered by tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unsupported SQLite support claim
The README now states SQLite is supported, but Model::insert() builds INSERT INTO ... SET ... for all non-PostgreSQL drivers; that syntax is MySQL-specific and will fail on SQLite as soon as you insert a row with any column values. This means users trying SQLite will hit SQL errors during normal inserts, so the documentation is misleading unless the insert path is updated to use SQLite-compatible syntax.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codex fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To use Codex here, create an environment for this repo.
411a4ca to
a2e83ed
Compare
Summary
Testing