prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
583 stars 61 forks source link

Compile error for 0.2.0-alpha.13 #280

Closed pixelspark closed 3 years ago

pixelspark commented 3 years ago

Features enabled: "sqlite", "mysql", "chrono"

   Compiling quaint v0.2.0-alpha.13
error[E0599]: no variant or associated item named `DateTime` found for enum `values::Value<'_>` in the current scope
  --> /Users/work/.cargo/registry/src/github.com-1ecc6299db9ec823/quaint-0.2.0-alpha.13/src/connector/sqlite/conversion.rs:40:63
   |
40 |                     Some("DATE") | Some("DATETIME") => Value::DateTime(None),
   |                                                               ^^^^^^^^ variant or associated item not found in `values::Value<'_>`
   | 
  ::: /Users/work/.cargo/registry/src/github.com-1ecc6299db9ec823/quaint-0.2.0-alpha.13/src/ast/values.rs:44:1
   |
44 | pub enum Value<'a> {
   | ------------------ variant or associated item `DateTime` not found here
pixelspark commented 3 years ago

My bad, seems to require chrono-0_4 as feature name see here