-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Impl Queryable, AsExpression, From/ToSql for ranges from std #1971
Conversation
|
From a short look over the code: It seems like the That means adding the cc @diesel-rs/core |
Seems like it's good to have precise Rust type to represent ranges with specific bounds. But I could remove some (redundant maybe) types like If I leave out |
Having those is additional types is no problem in my opinion.
Right, not implementing |
I see these types as kind of validation. What is validation policy? Maybe |
The policy contains 2 rules:
The second rule is not fulfilled because postgres range could contain values that are not valid for a specific I do not think that a |
Any news? |
@c410-f3r I do not see any updates here so why ask this question? |
It is worth to ask for updates after fifteen months of inactivity. Perhaps it will bring light to this PR, drawing people's attention; perhaps it will serve as a motivation for the author to finish his work; perhaps I will try to fix the commented problems as this feature is in my interest. Discouraging participation may lead to stagnation and stalled PR's. Nevertheless, I can happily remove my question if it is indeed not desired. |
@c410-f3r It's much about the wording here. I consider just asking From a technical point of view: My concerns raised here are remaining valid and are not answered yet. |
Hi, I implemented
Queryable
,Expression
,FromSql
,ToSql
traits forRange*
types fromstd
.It would be awesome to have these types when working with various intervals in Diesel.