我有一个带有NaiveDate字段的结构,我想把这个字段插入到一个表中。这是我的全部代码 use chrono::naive::NaiveDate; | the trait `ToSql` is not implemented for `NaiveDate` cargo.toml chrono = "0.4.19"
rusqlite
我有一个函数,它接收I列表,然后从数据库中选择它们。//github.com/rusqlite/rusqlite/issues/430,它说: //注意:必须使用Rc<Vec<Value>>作为参数。我不知道如何将这个Vec转换成Rc是一种不会产生编译错误的方法。implementations were found: <Vec<u8> as ToSql> required for