Repository navigation
feat: add duration support (inMiliseconds) - #493
Conversation
vlidholt
left a comment
There was a problem hiding this comment.
Overall, this looks great!
There were some minor formatting issues that needs to be fixed. Also the duration should be stored as an integer in the database (instead of storing it as a json structure). This may require a change to the serverpod_cli package too.
|
#493 (comment) |
|
@II11II at a first glance this looks great now, but I will look over everything tomorrow! :) |
vlidholt
left a comment
There was a problem hiding this comment.
Still a few minor issues. Almost there! :)
| /// Database AND operator. | ||
| Expression operator &(dynamic other) { | ||
| assert(other is Expression); | ||
| return Expression('($this AND $other)'); |
There was a problem hiding this comment.
Ok, I may have been unclear here, sorry for that.
- These changes are outside the scope of this pull request. Any major changes in formatting should be a separate request.
- Only use a trailing comma in this context if the expression spans multiple lines. Writing it on line if it fits is preferable.
There was a problem hiding this comment.
Generally, make as few changes as possible in a pull request. Only change things that is relevant to the new feature that you are adding. Making changes like this will make it much harder for others to merge their code if they are working on something similar (e.g. adding support for another built-in Dart type).
There was a problem hiding this comment.
Any major changes in formatting should be a separate request.
Ok, I may have been unclear here, sorry for that.
- These changes are outside the scope of this pull request. Any major changes in formatting should be a separate request.
- Only use a trailing comma in this context if the expression spans multiple lines. Writing it on line if it fits is preferable.
Now it's clear 🙂
Ill update mr
| if (className == 'double') return 'double precision'; | ||
| if (className == 'DateTime') return 'timestamp without time zone'; | ||
| if (className == 'ByteData') return 'bytea'; | ||
|
|
There was a problem hiding this comment.
Add in the missing new line again here
|
Well done! Thank you! 🤩 |
Replace this paragraph with a description of what this PR is changing or adding, and why.
List which issues are fixed by this PR. You must list at least one issue.
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes
If you have done any breaking changes, make sure to outline them here, so that they can be included in the notes for the next release.