-
-
Notifications
You must be signed in to change notification settings - Fork 36
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: bootstrap jiff-sqlx development #141
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
#50 (comment) discusses this. And the orphan rule is taken into account there. The way to do this integration, short of getting it merged upstream in Jiff is a "low level" crate. Having it depend on "high level" crates like |
This reverts commit 89f6330.
Signed-off-by: tison <[email protected]>
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.
@BurntSushi Yeah .. Adopt the other way now.
Also, the crate should be called |
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Other type mapping to be wrapped once we agree on the pattern:
Ref - |
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
All bridges submitted. Note that integrations for I'd suspend the task here to start |
The failing wasm CI job doesn't seem to be relevant to this patch .. |
Signed-off-by: tison <[email protected]>
I'm curious why this wouldn't be |
It's possible to support multiple type mappings, so it's possible to support both Span and Duration. However, PG's interval supports only months, days and microseconds parts. Span supports other units. I'm not sure if we can always assume 1 year=12 months, and 1 week=7days. Anyway, we may support two types together. |
As I understand, |
Signed-off-by: tison <[email protected]>
This refers to #50.
Firstly, I considered to add a separated
sqlx-jiff
method, but soon I found that due to Rust's orphan rules, implementing sqlx's trait forTimestamp
and other types requires the code to be located at the same crate (jiff
). Otherwise we need an extra wrapper struct like:I prefer to implement code in
jiff
and gate it with feature flags.@BurntSushi This demonstrates the integration implementation direction. I'll complete other parts when we agree on this direction.