This library isolates SQLite resources into a single dependency for rustlang projects.
The sqlite_deps is a facade for the certain structs in the rusqlite library.
use sqlite_deps::Connection;The following example demonstrates how to create a ConnectionPool.
use sqlite_deps::{ConnectionPool, Params};
let pool = ConnectionPool::from_params(Params {
filepath: PathBuf::from("./filepath/to/sqlite.db"),
number_of_connections: 4,
});
let conn = pool.get_connection()?;
let _ = pool.set_connection(conn)?;sqlite_deps-rs is released under the BSD 3-Clause License