diff --git a/src/types/value_ref.rs b/src/types/value_ref.rs
index 20a9f63..a7cd416 100644
--- a/src/types/value_ref.rs
+++ b/src/types/value_ref.rs
@@ -45,6 +45,19 @@ impl<'a> ValueRef<'a> {
}
}
+ /// If `self` is case `Null` returns None.
+ /// If `self` is case `Integer`, returns the integral value.
+ /// Otherwise returns [`Err(Error::InvalidColumnType)`](crate::Error::
+ /// InvalidColumnType).
+ #[inline]
+ pub fn as_i64_or_null(&self) -> FromSqlResult