Do not re-export open_with_flags

This commit is contained in:
Ivan Ukhov 2019-06-09 07:35:27 +02:00
parent 039bf4c67e
commit 64c2c7f2df
2 changed files with 1 additions and 7 deletions

View File

@ -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`.

View File

@ -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!(),