mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-23 23:04:29 +08:00
Document that optional()
requires import of rusqlite::OptionalExtension
Document that `optional()` requires import of `rusqlite::OptionalExtension`.
This commit is contained in:
@@ -438,7 +438,8 @@ impl Statement<'_> {
|
||||
///
|
||||
/// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the
|
||||
/// query truly is optional, you can call `.optional()` on the result of
|
||||
/// this to get a `Result<Option<T>>`.
|
||||
/// this to get a `Result<Option<T>>` (requires that the trait `rusqlite::OptionalExtension`
|
||||
/// is imported).
|
||||
///
|
||||
/// # Failure
|
||||
///
|
||||
@@ -464,7 +465,8 @@ impl Statement<'_> {
|
||||
///
|
||||
/// Returns `Err(QueryReturnedNoRows)` if no results are returned. If the
|
||||
/// query truly is optional, you can call `.optional()` on the result of
|
||||
/// this to get a `Result<Option<T>>`.
|
||||
/// this to get a `Result<Option<T>>` (requires that the trait `rusqlite::OptionalExtension`
|
||||
/// is imported).
|
||||
///
|
||||
/// # Failure
|
||||
///
|
||||
|
Reference in New Issue
Block a user