-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: impl Date/timestamp on update #203
Conversation
WalkthroughThe recent update introduces an Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (5)
- core/dal-decorator/src/decorator/Column.ts (1 hunks)
- core/dal-runtime/src/SqlGenerator.ts (1 hunks)
- core/dal-runtime/test/SqlGenerator.test.ts (2 hunks)
- core/dal-runtime/test/fixtures/modules/dal/AutoUpdateTime.ts (1 hunks)
- plugin/dal/README.md (1 hunks)
Additional comments not posted (5)
core/dal-runtime/test/fixtures/modules/dal/AutoUpdateTime.ts (1)
1-51
: LGTM! TheAutoUpdateTime
class is correctly defined with appropriate use of theautoUpdate
property for date and timestamp columns.core/dal-runtime/test/SqlGenerator.test.ts (1)
54-70
: > 📝 NOTEThis review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [5-69]
LGTM! The new test case correctly verifies the SQL generation for the
AutoUpdateTime
table, ensuring theautoUpdate
property is handled as expected.core/dal-decorator/src/decorator/Column.ts (1)
87-93
: LGTM! The addition of theautoUpdate
property to bothDateTimeParams
andTimestampParams
interfaces is correctly implemented, allowing for automatic updates of date and timestamp columns.core/dal-runtime/src/SqlGenerator.ts (1)
129-143
: LGTM! The changes to the SQL generation logic correctly handleTIMESTAMP
columns with precision and theautoUpdate
property, ensuring the automatic update feature is supported as expected.plugin/dal/README.md (1)
358-369
: LGTM! The documentation update correctly explains theautoUpdate
property forDateTimeParams
andTimestampParams
, providing clear guidance on its usage.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #203 +/- ##
==========================================
+ Coverage 91.58% 91.86% +0.28%
==========================================
Files 282 282
Lines 6561 6616 +55
Branches 951 980 +29
==========================================
+ Hits 6009 6078 +69
+ Misses 552 538 -14 ☔ View full report in Codecov by Sentry. |
|
Checklist
npm test
passesAffected core subsystem(s)
Description of change
Summary by CodeRabbit
autoUpdate
property forDateTime
andTimestamp
columns to enable automatic updating of timestamps.autoUpdate
property for time-related columns.