tokio-rs / rdbc

Rust DataBase Connectivity (RDBC) :: Common Rust API for database drivers
Apache License 2.0
566 stars 25 forks source link

Add support for temporal data types in result set #55

Open andygrove opened 4 years ago

andygrove commented 4 years ago

We need the ability to retrieve DATE, TIME, TIME_WITH_TIMEZONE, TIMESTAMP, and TIMESTAMP_WITH_TIMEZONE data types from query result sets, as defined by ANSI SQL [1].

We should probably use the chrono crate? [2]

[1] https://crate.io/docs/sql-99/en/latest//chapters/02.html#sql-data-types [2] https://docs.rs/chrono/0.4.10/chrono/