title: How to pass Vec<Value>> in rusqlite as query param
body: <p>I'm following the example from the rusqlite git hub <a href="https://github.com/rusqlite/rusqlite/blob/master/src/vtab/array.rs#L206" rel="nofollow noreferrer">https://github.com/rusqlite/rusqlite/blob/master/src/vtab/array.rs#L206</a>. I have the exact same code but I get the compile error</p>
  <pre><code>the trait bound `std::vec::Vec&lt;rusqlite::types::Value&gt;: rusqlite::ToSql` is not satisfied
  </code></pre>
  <p>A snippet of the code is below. ids is a Vec of String</p>
  <pre><code>let intValues:Vec&lt;i64&gt; = ids.into_iter().map(|s| s.parse::&lt;i64&gt;().expect(&quot;Id Parse error.&quot;)).collect();
  let values:Vec&lt;rusqlite::types::Value&gt; = intValues.into_iter().map(rusqlite::types::Value::from).collect();
  let ptr = std::rc::Rc::new(values);
  let mut statement = db_connection
      .prepare(&quot;select * from item where id in rarray(?);&quot;)
      .expect(&quot;Failed to prepare second query.&quot;);
  let results = statement
  
  // This is the error line
      .query_map(&amp;[&amp;ptr], |row| {
          Ok(database::ItemData {
              id: row.get(0)?,
              name: row.get(1)?,
              time_to_prepare: row.get(2)?
          })
      });
  </code></pre>