Rename BorrowedValue -> ValueRef.

This commit is contained in:
John Gallagher
2016-05-24 21:34:18 -04:00
parent 308789495c
commit 2f4990dafd
8 changed files with 67 additions and 67 deletions

View File

@@ -2,7 +2,7 @@ extern crate time;
use libc::c_int;
use {Error, Result};
use types::{FromSql, ToSql, BorrowedValue};
use types::{FromSql, ToSql, ValueRef};
use ffi::sqlite3_stmt;
@@ -16,7 +16,7 @@ impl ToSql for time::Timespec {
}
impl FromSql for time::Timespec {
fn column_result(value: BorrowedValue) -> Result<Self> {
fn column_result(value: ValueRef) -> Result<Self> {
value.as_str().and_then(|s| match time::strptime(s, SQLITE_DATETIME_FMT) {
Ok(tm) => Ok(tm.to_timespec()),
Err(err) => Err(Error::FromSqlConversionFailure(Box::new(err))),