Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
84 stars 12 forks source link

Date support #87

Open jayvdb opened 1 year ago

jayvdb commented 1 year ago

SqlValRef currently supports Timestamp(NaiveDateTime) , but has no support for a date without a time component. i.e. support for https://docs.rs/chrono/latest/chrono/naive/struct.NaiveDate.html would be helpful to some users.

sqlite has no special data type for timestamp or date.

postgres has a date datatype which is half the size of a timestamp, and also has a much later end date. c.f. https://www.postgresql.org/docs/current/datatype-datetime.html