diff --git a/src/lib.rs b/src/lib.rs index fd3ebbf..662cc08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,12 +304,6 @@ pub fn open>(path: T) -> Result { Connection::open(path) } -/// Open a connection to a database with a specific set of flags. -#[inline] -pub fn open_with_flags>(path: T, flags: OpenFlags) -> Result { - 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`. diff --git a/tests/lib.rs b/tests/lib.rs index 212edfa..28827d5 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -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!(),