Make blob_open take a DatabaseName instead of a str.

This commit is contained in:
John Gallagher
2015-12-14 13:38:36 -05:00
parent 73611d45d5
commit 5ac5f3e9b5
2 changed files with 9 additions and 9 deletions

View File

@@ -171,9 +171,9 @@ pub enum DatabaseName<'a> {
Attached(&'a str),
}
// Currently DatabaseName is only used by the backup mod, so hide this (private)
// Currently DatabaseName is only used by the backup and blob mods, so hide this (private)
// impl to avoid dead code warnings.
#[cfg(feature = "backup")]
#[cfg(any(feature = "backup", feature = "blob"))]
impl<'a> DatabaseName<'a> {
fn to_cstring(self) -> Result<CString> {
use self::DatabaseName::{Main, Temp, Attached};