mirror of
https://github.com/fluencelabs/sqlite-wasm-connector
synced 2025-03-15 06:20:50 +00:00
Do not re-export open_with_flags
This commit is contained in:
parent
039bf4c67e
commit
64c2c7f2df
@ -304,12 +304,6 @@ pub fn open<T: AsRef<std::path::Path>>(path: T) -> Result<Connection> {
|
||||
Connection::open(path)
|
||||
}
|
||||
|
||||
/// Open a connection to a database with a specific set of flags.
|
||||
#[inline]
|
||||
pub fn open_with_flags<T: AsRef<std::path::Path>>(path: T, flags: OpenFlags) -> Result<Connection> {
|
||||
Connection::open_with_flags(path, flags)
|
||||
}
|
||||
|
||||
/// Return the version number of SQLite.
|
||||
///
|
||||
/// For instance, the version `3.8.11.1` corresponds to the integer `3008011`.
|
||||
|
@ -49,7 +49,7 @@ fn connection_open_with_flags() {
|
||||
setup_users(&path);
|
||||
|
||||
let flags = OpenFlags::new().set_read_only();
|
||||
let connection = ok!(sqlite::open_with_flags(path, flags));
|
||||
let connection = ok!(Connection::open_with_flags(path, flags));
|
||||
match connection.execute("INSERT INTO users VALUES (2, 'Bob', NULL, NULL)") {
|
||||
Err(_) => {}
|
||||
_ => unreachable!(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user