INNER CODE UNIT · Rust
open_with_flags_and_vfs
rusqlite/rusqlite · src/lib.rs:495
pub fn open_with_flags_and_vfs<P: AsRef<Path>, V: Name>(
path: P,
flags: OpenFlags,
vfs: V,
) -> Result<Self> {
let c_path = path_to_cstring(path.as_ref())?;
let c_vfs = vfs.as_cstr()?;
InnerConnection::open_with_flags(&c_path, flags, Some(&c_vfs)).map(|db| Self {
db: RefCell::new(db),
#[cfg(feature = "cache")]
cache: StatementCache::with_capacity(STATEMENT_CACHE_DEFAULT_CAPACITY),
transaction_behavior: TransactionBehavior::Deferred,
})
}
/// Open a new connection to an in-memory SQLite database.
///
/// [Database Connection](http://www.sqlite.org/c3ref/open.html) for a description of valid