SqlVec
A generic container for vectors allowing for rusqlite operations.
The vector must contain elements that implement ToString
& FromStr
.
SqlVec
implements ToSql
& FromSql
storing values as \u{F1}
delimited text.
If the sqlite conversion is to be bidirectional then the
ToString
&FromStr
must also be bidirectional.
[]
= { = "0.0.1", = ["serde"] }
Usage
Wrap a vector with SqlVec
before passing to the database.
use SqlVec;
let values = new;
connection.execute.unwrap;