From 64c2c7f2df5f54c40adbd077261ef30fdad2e9ef Mon Sep 17 00:00:00 2001 From: Ivan Ukhov Date: Sun, 9 Jun 2019 07:35:27 +0200 Subject: [PATCH] Do not re-export open_with_flags --- src/lib.rs | 6 ------ tests/lib.rs | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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!(),