sea-query icon indicating copy to clipboard operation
sea-query copied to clipboard

[SeaQuery] Support `time` crate on SQLite

Open billy1624 opened this issue 3 years ago • 4 comments

Native support of time crate has been added in PR https://github.com/launchbadge/sqlx/pull/1865 and released as part of SQLx 0.6.1.

Now we could bind time on to SQLite query statement and get time from SQLite directly.

billy1624 avatar Aug 08 '22 02:08 billy1624

I want to try it.

Do we need to rewrite around these codes?

https://github.com/SeaQL/sea-query/blob/e9f961eb760d81f80817aae61f502eba409846dd/sea-query-binder/src/sqlx_sqlite.rs#L76-L90

kyoto7250 avatar Aug 09 '22 14:08 kyoto7250

@kyoto7250 yep and you need fix: https://github.com/SeaQL/sea-query/blob/master/sea-query-driver/src/sqlx_sqlite.rs

ikrivosheev avatar Aug 09 '22 14:08 ikrivosheev

@ikrivosheev Thank you, I will try it :)

kyoto7250 avatar Aug 09 '22 15:08 kyoto7250

@ikrivosheev Thank you, I will try it :)

It doesn't look very hard) Good look, ping me if you need help

ikrivosheev avatar Aug 09 '22 15:08 ikrivosheev